X-Git-Url: https://git.karo-electronics.de/?p=karo-tx-linux.git;a=blobdiff_plain;f=fs%2F9p%2Fvfs_file.c;h=7bf835f85bc822ef1119b639be82619af066d326;hp=f23fd86697ea5ed4234ff96a8dd236b8884e6026;hb=ccf27814a63fc122dc5980453a18847dc5d8429f;hpb=008315e4c67cb0860ad27e31252081262b425998 diff --git a/fs/9p/vfs_file.c b/fs/9p/vfs_file.c index f23fd86697ea..7bf835f85bc8 100644 --- a/fs/9p/vfs_file.c +++ b/fs/9p/vfs_file.c @@ -231,7 +231,8 @@ out_unlock: if (res < 0 && fl->fl_type != F_UNLCK) { fl_type = fl->fl_type; fl->fl_type = F_UNLCK; - res = locks_lock_file_wait(filp, fl); + /* Even if this fails we want to return the remote error */ + locks_lock_file_wait(filp, fl); fl->fl_type = fl_type; } out: