drbd: use kzalloc and memset(,0,) to start with clean buffers in drbd_nl
authorLars Ellenberg <lars.ellenberg@linbit.com>
Wed, 24 Nov 2010 09:41:45 +0000 (10:41 +0100)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Thu, 10 Mar 2011 10:35:14 +0000 (11:35 +0100)
commit3e3a7766c2e6995ac98e7855017abc3544d54e08
tree943c9d62c89764f1070a8a4067a3bd0d4e9de162
parent17a93f3007c13003c739a19d0814cb5c2d21daba
drbd: use kzalloc and memset(,0,) to start with clean buffers in drbd_nl

Make sure we start with clean buffers to not accidentally send garbage
back to userspace. Note: has not been observed; but just in case.

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
drivers/block/drbd/drbd_nl.c