diff options
author | Alexey Khoroshilov <khoroshilov@ispras.ru> | 2013-04-23 19:27:39 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-05-13 17:50:06 -0400 |
commit | 657d4c86d4cd85a4696445f6fb2fe0941a5724ff (patch) | |
tree | e5650cce8ab3f4f466ecbdf5fed7271471a7a5d0 /drivers/staging/wlags49_h2/wl_cs.h | |
parent | d1d2f83f850e7d57a220fa2c7ce7f0bd5ed6c16d (diff) |
staging: wlags49_h2: fix error handling in pcmcia probe function
wl_adapter_attach() ignores some important issues
such as register_netdev() failure. The patch fixes it.
Found by Linux Driver Verification project (linuxtesting.org).
Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/wlags49_h2/wl_cs.h')
-rw-r--r-- | drivers/staging/wlags49_h2/wl_cs.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/wlags49_h2/wl_cs.h b/drivers/staging/wlags49_h2/wl_cs.h index a7ab579759de..081cc6f28d1f 100644 --- a/drivers/staging/wlags49_h2/wl_cs.h +++ b/drivers/staging/wlags49_h2/wl_cs.h @@ -65,10 +65,10 @@ /******************************************************************************* - * function protoypes + * function prototypes ******************************************************************************/ -void wl_adapter_insert(struct pcmcia_device *link); +int wl_adapter_insert(struct pcmcia_device *link); void wl_adapter_release(struct pcmcia_device *link); |