Staging: p9auth: use kzalloc
commit6d0d63bd7a9c0a6373c7759cb55580b806269dae
authorGreg Kroah-Hartman <gregkh@suse.de>
Wed, 25 Feb 2009 04:31:39 +0000 (24 20:31 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 3 Apr 2009 21:54:24 +0000 (3 14:54 -0700)
tree59fa634c16446dd895c1dc9aa4272317454b6d24
parent0f386e2b4c6109164e82277513a9570fc9ec644c
Staging: p9auth: use kzalloc

It's nicer than doing kmalloc/memset.

Also check the return value of all allocations, one was previously not
being checked properly.

Cc: Ashwin Ganti <ashwin.ganti@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/p9auth/p9auth.c