Commit 6afdc60
committed
udf: Fix inode_getblk() return value
Smatch noticed that inode_getblk() can return 1 on successful mapping of
a block instead of expected 0 after commit b405c1e ("udf: refactor
udf_next_aext() to handle error"). This could confuse some of the
callers and lead to strange failures (although the one reported by
Smatch in udf_mkdir() is impossible to trigger in practice). Fix the
return value of inode_getblk().
Link: https://lore.kernel.org/all/[email protected]
Reported-by: Dan Carpenter <[email protected]>
Reviewed-by: Carlos Maiolino <[email protected]>
Fixes: b405c1e ("udf: refactor udf_next_aext() to handle error")
CC: [email protected]
Signed-off-by: Jan Kara <[email protected]>1 parent a7624cc commit 6afdc60
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
810 | 810 | | |
811 | 811 | | |
812 | 812 | | |
| 813 | + | |
813 | 814 | | |
814 | 815 | | |
815 | 816 | | |
| |||
0 commit comments