Date: Tue, 3 Mar 2015 02:08:18 +0000 (UTC) From: Kevin Lo <kevlo@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r279557 - head/sys/dev/flash Message-ID: <201503030208.t2328I0k058418@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kevlo Date: Tue Mar 3 02:08:17 2015 New Revision: 279557 URL: https://svnweb.freebsd.org/changeset/base/279557 Log: Check the return value of config_intrhook_establish(). Modified: head/sys/dev/flash/at45d.c Modified: head/sys/dev/flash/at45d.c ============================================================================== --- head/sys/dev/flash/at45d.c Mon Mar 2 23:17:17 2015 (r279556) +++ head/sys/dev/flash/at45d.c Tue Mar 3 02:08:17 2015 (r279557) @@ -197,8 +197,10 @@ at45d_attach(device_t dev) /* We'll see what kind of flash we have later... */ sc->config_intrhook.ich_func = at45d_delayed_attach; sc->config_intrhook.ich_arg = sc; - if (config_intrhook_establish(&sc->config_intrhook) != 0) + if (config_intrhook_establish(&sc->config_intrhook) != 0) { device_printf(dev, "config_intrhook_establish failed\n"); + return (ENOMEM); + } return (0); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201503030208.t2328I0k058418>