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)
committerTom Rini <trini@konsulko.com>
Thu, 19 Nov 2020 14:45:49 +0000 (09:45 -0500)
commit56cf1ceee38435a0c105d40336d12d19e1db8b1d
treeb91c61e9fec8f2d295cc88f2e6d0227da2b5984b
parentccd4c08a452b3703ee16ba730a84b7caadcff97a
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>
fs/squashfs/sqfs.c