]> xenbits.xensource.com Git - legacy/linux-2.6.18-xen.git/commit
xen/backends: use kzalloc() in favor of kmalloc()+memset()
authorJan Beulich <jbeulich@novell.com>
Sat, 17 Sep 2011 15:29:02 +0000 (16:29 +0100)
committerJan Beulich <jbeulich@novell.com>
Sat, 17 Sep 2011 15:29:02 +0000 (16:29 +0100)
commitdadc4ead7669ef33802721253ed864d3a62f5025
tree1af5b3bb13c8edc28dcb720a6a40ceeaa822e9d0
parentb3df0038cbca9ac2750d738c5af9dbe5340e2bac
xen/backends: use kzalloc() in favor of kmalloc()+memset()

This fixes the problem of three of those four memset()-s having
improper size arguments passed: Sizeof a pointer-typed expression
returns the size of the pointer, not that of the pointed to data.

Reported-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Jan Beulich <jbeulich@novell.com>
drivers/xen/blkback/blkback.c
drivers/xen/scsiback/emulate.c
drivers/xen/scsiback/scsiback.c
drivers/xen/usbback/usbback.c