diff options
| author | Kevin Lo <kevlo@FreeBSD.org> | 2015-03-03 02:08:17 +0000 |
|---|---|---|
| committer | Kevin Lo <kevlo@FreeBSD.org> | 2015-03-03 02:08:17 +0000 |
| commit | 429b844ba6082354560e9423f3630be86aca88ff (patch) | |
| tree | 4a46f54a60630a5dab3c3cc09927ab53750667b5 /sys/dev/flash | |
| parent | 5719711f8b91c35ef2fe50602a85cdce84e0f6a2 (diff) | |
Notes
Diffstat (limited to 'sys/dev/flash')
| -rw-r--r-- | sys/dev/flash/at45d.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/flash/at45d.c b/sys/dev/flash/at45d.c index 7506434afe0a2..347ed9051d6d4 100644 --- a/sys/dev/flash/at45d.c +++ b/sys/dev/flash/at45d.c @@ -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); } |
