summaryrefslogtreecommitdiffstats
path: root/drivers/md/md.h
diff options
context:
space:
mode:
authorNeilBrown2011-07-27 23:56:24 +0200
committerNeilBrown2011-07-27 23:56:24 +0200
commita519b26dbe6533416d21b552053b0bf687f878d7 (patch)
treebef24eab8604ef2275eb8f1b591ea52bd4b89194 /drivers/md/md.h
parentMD: generate an event when array sync is complete (diff)
downloadkernel-qcow2-linux-a519b26dbe6533416d21b552053b0bf687f878d7.tar.gz
kernel-qcow2-linux-a519b26dbe6533416d21b552053b0bf687f878d7.tar.xz
kernel-qcow2-linux-a519b26dbe6533416d21b552053b0bf687f878d7.zip
md: remove suspicious size_of()
When calling bioset_create we pass the size of the front_pad as sizeof(mddev) which looks suspicious as mddev is a pointer and so it looks like a common mistake where sizeof(*mddev) was intended. The size is actually correct as we want to store a pointer in the front padding of the bios created by the bioset, so make the intent more explicit by using sizeof(mddev_t *) Reported-by: Zdenek Kabelac <zdenek.kabelac@gmail.com> Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/md.h')
0 files changed, 0 insertions, 0 deletions