mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
GFS2: Adding missing unlock_page()
gfs2_write_begin() calls grab_cache_page_write_begin() that returns *locked* page. Correspondent error-handling path lacks for unlock_page() call: > out: > if (error == 0) > return 0; > > page_cache_release(page); The whole system hangs if gfs2_unstuff_dinode() called from gfs2_write_begin() failed for some reason. Reported-by: Maxim <[email protected]> Signed-off-by: Maxim <[email protected]> Signed-off-by: Steven Whitehouse <[email protected]>
This commit is contained in:
parent
c618e87a5f
commit
6c474f7bc1
1 changed files with 1 additions and 0 deletions
|
|
@ -695,6 +695,7 @@ out:
|
|||
if (error == 0)
|
||||
return 0;
|
||||
|
||||
unlock_page(page);
|
||||
page_cache_release(page);
|
||||
|
||||
gfs2_trans_end(sdp);
|
||||
|
|
|
|||
Loading…
Reference in a new issue