diff options
author | Colin Ian King <[email protected]> | 2017-09-05 17:51:23 +0100 |
---|---|---|
committer | Dan Williams <[email protected]> | 2017-09-05 10:02:08 -0700 |
commit | aed9eb1b21e85a846c805bc299bbb9d039d4a95b (patch) | |
tree | 33b3f3595916573d2e69f215ce4fcb29ad37a9c3 /lib/memory-notifier-error-inject.c | |
parent | 9edcad53d673fb033c2da7c6c05d30737739fdf5 (diff) |
ext4: fix null pointer dereference on sbi
In the case of a kzalloc failure when allocating sbi we end up
with a null pointer dereference on sbi when assigning sbi->s_daxdev.
Fix this by moving the assignment of sbi->s_daxdev to after the
null pointer check of sbi.
Detected by CoverityScan CID#1455379 ("Dereference before null check")
Fixes: 5e405595e5bf ("ext4: perform dax_device lookup at mount")
Signed-off-by: Colin Ian King <[email protected]>
Signed-off-by: Dan Williams <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions