summaryrefslogtreecommitdiff
path: root/init/do_mounts_initrd.c
diff options
context:
space:
mode:
authorSergei Shtylyov <sshtylyov@ru.mvista.com>2013-01-08 23:11:14 +0400
committerFelipe Balbi <balbi@ti.com>2013-01-17 17:45:45 +0400
commitb37457d80bc3e2a6bb86a6036c572574614a7631 (patch)
tree195e5c175921562c353107d93ece3fb7ce042f56 /init/do_mounts_initrd.c
parent25736e0c8269e9613aa6036fbc591818daa30d14 (diff)
downloadlinux-b37457d80bc3e2a6bb86a6036c572574614a7631.tar.xz
usb: musb: omap2430: fix wrong devm_kzalloc() result check
Commit 00a0b1d58af873d842580dcac55f3b156c3a4077 (usb: musb: omap: Add device tree support for omap musb glue) assigns result of devm_kzalloc() call to the 'config' variable but then checks for NULL the 'data' variable (already checked after previous call). Thus we risk a kernel oops further when data pointed by 'config' is written to by subsequent of_property_read_u32() calls iff the allocation happens to fail... Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'init/do_mounts_initrd.c')
0 files changed, 0 insertions, 0 deletions