HPFS fix return without releasing BKL
PATCH 1/1 HPFS fix return without releasing BKL
Linus,
This was found by Dan Carpenter <[email protected]>, using an smatch script. Looks to me like like an error caused during all the BKL pushing.
Signature · 2 lines
Dave Hansen [email protected]
fs/hpfs/dir.c +4 -1
@@ -211,7 +211,10 @@lock_kernel ();if ((err =hpfs_chk_name ((char *)name, &len))) { -if (err == -ENAMETOOLONG )return ERR_PTR (-ENAMETOOLONG ); +if (err == -ENAMETOOLONG ) { +unlock_kernel (); +return ERR_PTR (-ENAMETOOLONG ); + } goto end_add; }