summaryrefslogtreecommitdiffstats
path: root/drivers/base/core.c
diff options
context:
space:
mode:
authorJan Beulich <JBeulich@suse.com>2011-09-16 08:38:09 +0100
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2011-10-13 09:48:34 -0400
commit8e6dc6fe51957116d363204a725c1262b4b78e19 (patch)
tree0e37fa8f70308ca1e6bebde46423bfd2984e0088 /drivers/base/core.c
parentc555aab97de139ac8762c922248bb68f43a8c488 (diff)
downloadlinux-stable-8e6dc6fe51957116d363204a725c1262b4b78e19.tar.gz
linux-stable-8e6dc6fe51957116d363204a725c1262b4b78e19.tar.bz2
linux-stable-8e6dc6fe51957116d363204a725c1262b4b78e19.zip
xen-blkback: 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. It also reverts using kmalloc() instead of kzalloc() for the allocation of the pending grant handles array, as that array gets fully initialized in a subsequent loop. Reported-by: Julia Lawall <julia@diku.dk> Signed-off-by: Jan Beulich <jbeulich@novell.com> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'drivers/base/core.c')
0 files changed, 0 insertions, 0 deletions