fix file_lock_cache leak
Subsystems (2)
PATCH 1/1 fix file_lock_cache leak
Always free the request, not just on error.
fs/locks.c +3 -8
@@ -1459,10 +1470,8 @@ int fcntl_setlk(struct file *filp, unsigbreak ; } -out: -if (error) { -locks_free_lock (file_lock); - } + out: +locks_free_lock (file_lock);return error; }
@@ -1601,11 +1614,8 @@ int fcntl_setlk64(struct file *filp, uns break; } - out: -if (error) { -locks_free_lock (file_lock); - } +locks_free_lock (file_lock);return error; }#endif /* BITS_PER_LONG == 32 */
Signature · 1 line
Revolutions do not require corporate support.