]> git.baikalelectronics.ru Git - kernel.git/commit
net: wireless: hostap: hostap_ap.c: Return -ENOMEM instead of -1 for if kmalloc(...
authorKumar Amit Mehta <gmate.amit@gmail.com>
Mon, 18 Feb 2013 12:13:44 +0000 (04:13 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 18 Feb 2013 20:30:40 +0000 (15:30 -0500)
commit364689e1e9c38dec7d4e67d502bdcdabf6e316e3
treeba0f346b11ed66e242c845586bff11ab6b7ce61c
parent3b5557aa8c1ca3d5f2f964e234e57ac895990c73
net: wireless: hostap: hostap_ap.c: Return -ENOMEM instead of -1 for if kmalloc() fails.

When memory allocation using, kmalloc() fails, report appropriate error value.

Signed-off-by: Kumar Amit Mehta <gmate.amit@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/hostap/hostap_ap.c