net: orinoco: add error handling for failed kmalloc().
authorSantosh Nayak <santoshprasadnayak@gmail.com>
Thu, 22 Mar 2012 07:12:41 +0000 (12:42 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 28 Mar 2012 18:25:35 +0000 (14:25 -0400)
commite90c7e712980bf794f88f749e2a1270e4a4a116e
treee037a02e279b449c6889dcbee8b76424655f4036
parent75836b8daefdde84f8b5dde1be5b67d858139df3
net: orinoco: add error handling for failed kmalloc().

With flag 'GFP_ATOMIC', probability of allocation failure is more.
Add error handling after kmalloc() call to avoid null dereference.

Signed-off-by: Santosh Nayak <santoshprasadnayak@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/orinoco/main.c