[PATCH 4/4] 9p locks: fix glock.client_id leak in do_lock

2018-09-07 Thread Dominique Martinet
From: Dominique Martinet the 9p client code overwrites our glock.client_id pointing to a static buffer by an allocated string holding the network provided value which we do not care about; free and reset the value as appropriate. This is almost identical to the leak in v9fs_file_getlock() fixed

[PATCH 4/4] 9p locks: fix glock.client_id leak in do_lock

2018-09-07 Thread Dominique Martinet
From: Dominique Martinet the 9p client code overwrites our glock.client_id pointing to a static buffer by an allocated string holding the network provided value which we do not care about; free and reset the value as appropriate. This is almost identical to the leak in v9fs_file_getlock() fixed