]> git.dujemihanovic.xyz Git - u-boot.git/commit
sandbox: check lseek return value in handle_ufi_command
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Thu, 10 Nov 2022 07:40:30 +0000 (08:40 +0100)
committerSimon Glass <sjg@chromium.org>
Tue, 22 Nov 2022 22:13:35 +0000 (15:13 -0700)
commitb3a680a47abfdd5fa4086bab53891f3a4e798d74
tree675c722a23dd8c1e35fba22baf7b7707edc97150
parent8dd0059f7797006a6bcbea1a3954dee27aa3473a
sandbox: check lseek return value in handle_ufi_command

Invoking lseek() may result in an error. Handle it.

Addresses-Coverity-ID: 376212 ("Error handling issues  (CHECKED_RETURN)")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
drivers/usb/emul/sandbox_flash.c