Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: 5e40559 ("ext4: perform dax_device lookup at mount") Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: Dan Williams <[email protected]>
- Loading branch information