Commit 59c30e3
exfat: fix potential wrong error return from get_block
If there is no error, get_block() should return 0. However, when bh_read()
returns 1, get_block() also returns 1 in the same manner.
Let's set err to 0, if there is no error from bh_read()
Fixes: 11a347f ("exfat: change to get file size from DataLength")
Cc: [email protected]
Signed-off-by: Sungjong Seo <[email protected]>
Reviewed-by: Yuezhang Mo <[email protected]>
Signed-off-by: Namjae Jeon <[email protected]>1 parent 47e3536 commit 59c30e3
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
391 | 391 | | |
392 | 392 | | |
393 | 393 | | |
| 394 | + | |
| 395 | + | |
394 | 396 | | |
395 | 397 | | |
396 | 398 | | |
| |||
0 commit comments