]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Use kzalloc instead of kmalloc for pending mgmt commands
authorJohan Hedberg <johan.hedberg@intel.com>
Sat, 28 Jun 2014 14:54:05 +0000 (17:54 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 3 Jul 2014 15:42:48 +0000 (17:42 +0200)
commit78be25011c4feed0cf4d1d3c34d8016a7845ed75
treecac4df3860e49ac5448197482e730d8c8da0ec22
parentdd8c6eab9bc8252e03aca77321fada359d9cd0c0
Bluetooth: Use kzalloc instead of kmalloc for pending mgmt commands

By using kzalloc we ensure that there are no struct members, such as the
user_data pointer, left uninitialized.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/mgmt.c