[PATCH] airo.c: check returned values
authorFlorin Malita <fmalita@gmail.com>
Tue, 10 Oct 2006 20:46:30 +0000 (16:46 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 17 Oct 2006 00:09:48 +0000 (20:09 -0400)
commit431aca5a18f15f61cc51c466073928c4f9565fe4
tree1ee40a5467e93060f37c271c7bd6d92096c6a045
parent8da81e52b743edac0bfbb7d0c1286f919b2f209b
[PATCH] airo.c: check returned values

create_proc_entry() can fail and return NULL in setup_proc_entry(), the
result must be checked before dereferencing. (Coverity ID 1443)

init_wifidev() & setup_proc_entry() can also fail in _init_airo_card().

This adds the checks & cleanup code and removes some whitespace.

Signed-off-by: Florin Malita <fmalita@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/airo.c