Commit 7705950
exfat: add missing brelse() calls on error paths
If the second exfat_get_dentry() call fails then we need to release
old_bh before returning. There is a similar bug in exfat_move_file().
Fixes: 5f2aa075070c ("exfat: add inode operations")
Reported-by: Markus Elfring <Markus.Elfring@web.de>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>1 parent 3eff71e commit 7705950
1 file changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1184 | 1184 | | |
1185 | 1185 | | |
1186 | 1186 | | |
| 1187 | + | |
| 1188 | + | |
1187 | 1189 | | |
1188 | 1190 | | |
1189 | | - | |
| 1191 | + | |
| 1192 | + | |
1190 | 1193 | | |
| 1194 | + | |
1191 | 1195 | | |
1192 | 1196 | | |
1193 | 1197 | | |
| |||
1268 | 1272 | | |
1269 | 1273 | | |
1270 | 1274 | | |
| 1275 | + | |
| 1276 | + | |
1271 | 1277 | | |
1272 | 1278 | | |
1273 | | - | |
| 1279 | + | |
| 1280 | + | |
1274 | 1281 | | |
| 1282 | + | |
1275 | 1283 | | |
1276 | 1284 | | |
1277 | 1285 | | |
| |||
0 commit comments