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)
commitb53cf458ea20dd7f5e32611366f63728e40c9021
treeba0f346b11ed66e242c845586bff11ab6b7ce61c
parent488ec878034eccb852267b0e27ce9d511f75c587
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