wl1251: return -ENOMEM if kzalloc fails
authorJing Wang <windsdaemon@gmail.com>
Thu, 24 Oct 2013 08:14:11 +0000 (16:14 +0800)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 5 Dec 2013 19:54:32 +0000 (14:54 -0500)
commit60ce473e4938a42d355dd6c83e55211a08ebe25d
tree5174bbc99a6cb7cbc0c725b34f39b7a7b3e01554
parentd94248ac2aef78e39a76321458a78ba7805dba2e
wl1251: return -ENOMEM if kzalloc fails

the original code used goto out if kzalloc fails,but the out include kfree,
so return -ENOMEM if kzalloc fails.

Signed-off-by: Jing Wang <windsdaemon@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ti/wl1251/acx.c