staging/wlan-ng: use kzalloc rather using kmalloc at create_wlan
authorDevendra Naga <devendra.aaru@gmail.com>
Sat, 14 Jul 2012 07:41:59 +0000 (13:26 +0545)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Jul 2012 02:21:37 +0000 (19:21 -0700)
commit1a46eafe1c4a2bf45928beb280b378f5af904ed9
treeb8c2650d22e27b62625cfb46dd739c1bef31d1d9
parent6594ac5dead7ad7cd10103d147eda3190fd49cad
staging/wlan-ng: use kzalloc rather using kmalloc at create_wlan

instead we would have used kzalloc, so our memory which is allocated will be set to 0.

codepath:

the code path here is prism2sta_probe_usb, calling when ever usb-dev id
and usb-vendor id e.t.c matches with what ever present in the MODULE_DEVICE_TABLE,

and in prism2sta_probe_usb , we call create_wlan, and its called nowhere else...

Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wlan-ng/prism2sta.c