]> git.dujemihanovic.xyz Git - u-boot.git/commit
blk: host_dev: Fix error code in host_sb_attach_file()
authorDan Carpenter <dan.carpenter@linaro.org>
Wed, 31 Jan 2024 07:09:52 +0000 (10:09 +0300)
committerTom Rini <trini@konsulko.com>
Tue, 6 Feb 2024 21:31:07 +0000 (16:31 -0500)
commite5e7d8bbcffb26f5ac9a8fab7909225f527e157d
treee781dcc492d960106d9a9926b3261fec3cb0d602
parentc59720c5f4c592688d2899b352f446703c968666
blk: host_dev: Fix error code in host_sb_attach_file()

This error path should return -EINVAL instead of success.

Fixes: e261fbf34785 ("blk: host_dev: Sanity check on the size of host backing file")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
drivers/block/host_dev.c