Whamcloud - gitweb
AOSP: ext2simg: fix error check of io_channel_read_blk64()
authorEric Biggers <ebiggers@google.com>
Thu, 23 Mar 2023 02:49:43 +0000 (02:49 +0000)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 20 May 2024 17:06:41 +0000 (13:06 -0400)
commite5b299064df997dc6659659db345486e0c38aadc
treee0edcf9a06978a81ed858f3d948b43160add45e1
parentbe1e4efec9c511eb4a42d1bb9a60882c92cf0685
AOSP: ext2simg: fix error check of io_channel_read_blk64()

Check the return value of io_channel_read_blk64() correctly, considering
that it returns an errcode_t, which can be positive.

Fixes: db6f320912cf ("AOSP: android: add the ext2simg tool")
Change-Id: Iafc6c0169bc8ac79198f285da0246ff3b841ded8
Signed-off-by: Eric Biggers <ebiggers@google.com>
From AOSP commit: 60634ff32a0d8c0d7942c6e522a74a5051d4b6e9
contrib/android/ext2simg.c