git.openpandora.org
/
pandora-u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab0e1c1
)
fs: fs_devread should log error when read outside partition
author
Tony Dinh
<mibodhi@gmail.com>
Tue, 20 May 2025 23:49:24 +0000
(16:49 -0700)
committer
Tom Rini
<trini@konsulko.com>
Fri, 23 May 2025 16:42:31 +0000
(10:42 -0600)
Log the error if fs_devread() fails when trying to reading outside
partition. This will make bug reporting easier.
Signed-off-by: Tony Dinh <mibodhi@gmail.com>
fs/fs_internal.c
patch
|
blob
|
history
diff --git
a/fs/fs_internal.c
b/fs/fs_internal.c
index
ab4847a
..
ff27c56
100644
(file)
--- a/
fs/fs_internal.c
+++ b/
fs/fs_internal.c
@@
-28,7
+28,7
@@
int fs_devread(struct blk_desc *blk, struct disk_partition *partition,
/* Check partition boundaries */
if ((sector + ((byte_offset + byte_len - 1) >> log2blksz))
>= partition->size) {
- log_
debug("r
ead outside partition " LBAFU "\n", sector);
+ log_
err("** R
ead outside partition " LBAFU "\n", sector);
return 0;
}