staging: wlags49_h2: Replace kmalloc+memset by kzalloc and add error handling.
authorSantosh Nayak <santoshprasadnayak@gmail.com>
Fri, 23 Mar 2012 15:44:02 +0000 (21:14 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Apr 2012 16:47:06 +0000 (09:47 -0700)
commit310c6a762e224ae38efac304c936b82ad89a4ff1
treecd06272621a874889cc65070f1e71a589ccc4fb4
parent277ac73720628f032c34c1e8b157a6ae2077766f
staging: wlags49_h2: Replace kmalloc+memset by kzalloc and add error handling.

Replace kmalloc+memset pair by kzalloc() in 'wl_wds_device_alloc()'.
Add error handling to avoid null derefernce.

Signed-off-by: Santosh Nayak <santoshprasadnayak@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wlags49_h2/wl_netdev.c