aboutsummaryrefslogtreecommitdiffstats
path: root/fs/jbd2/commit.c
diff options
context:
space:
mode:
authorweiyongjun (A) <[email protected]>2018-01-05 01:50:59 +0000
committerStephen Boyd <[email protected]>2018-01-10 21:24:36 +0000
commit9d548d80384732bad74c3046329e5dbdae098104 (patch)
tree2373e0e1db880e20502628bbe6aec11a5f20615e /fs/jbd2/commit.c
parentMerge tag 'meson-clk-for-v4.16-3' of git://github.com/BayLibre/clk-meson into... (diff)
downloadkernel-9d548d80384732bad74c3046329e5dbdae098104.tar.gz
kernel-9d548d80384732bad74c3046329e5dbdae098104.zip
clk: meson-axg: fix potential NULL dereference in axg_clkc_probe()
platform_get_resource() may return NULL, add proper check to avoid potential NULL dereferencing. This is detected by Coccinelle semantic patch. @@ expression pdev, res, n, t, e, e1, e2; @@ res = platform_get_resource(pdev, t, n); + if (!res) + return -EINVAL; ... when != res == NULL e = devm_ioremap(e1, res->start, e2); Signed-off-by: Wei Yongjun <[email protected]> Signed-off-by: Stephen Boyd <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions