fs/squashfs: sqfs_probe: reset cur_dev/cur_part_info to NULL on error
authorRichard Genoud <richard.genoud@posteo.net>
Tue, 3 Nov 2020 11:11:21 +0000 (12:11 +0100)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Mon, 15 Nov 2021 10:37:12 +0000 (11:37 +0100)
commit376562458fa457a62863172123b776cb5f7f268c
tree6efdb5380ff89d64d9fd9ae7c708150583be7c70
parent8492bb29c692ee7efadd3cf6acdc43f9f5552c47
fs/squashfs: sqfs_probe: reset cur_dev/cur_part_info to NULL on error

Resetting the context on error will prevent some checks like:
if (!ctx.cur_dev)
To pass when the probe method has failed

Signed-off-by: Richard Genoud <richard.genoud@posteo.net>
[jh80.chung: cherry picked from mainline commit 56cf1ceee38435a0c105d40336d12d19e1db8b1d]
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Change-Id: I998b1fa2d790bf9618d0d652663edb220a32c610
fs/squashfs/sqfs.c