Li Qiang d63fb193e7 9pfs: fix file descriptor leak
The v9fs_create() and v9fs_lcreate() functions are used to create a file
on the backend and to associate it to a fid. The fid shouldn't be already
in-use, otherwise both functions may silently leak a file descriptor or
allocated memory. The current code doesn't check that.

This patch ensures that the fid isn't already associated to anything
before using it.

Signed-off-by: Li Qiang <liqiang6-s@360.cn>
(reworded the changelog, Greg Kurz)
Signed-off-by: Greg Kurz <groug@kaod.org>
2017-03-27 21:13:19 +02:00
..
2017-03-27 21:13:19 +02:00
2017-01-27 18:08:00 +01:00
2017-03-27 12:14:45 +02:00
2017-01-20 11:15:06 +00:00
2017-03-27 12:14:45 +02:00
2017-02-06 12:33:21 +11:00
2017-01-27 18:07:59 +01:00
2017-02-24 10:37:21 +00:00
2017-02-28 20:40:36 +01:00
2017-02-02 18:48:06 +00:00
2017-02-24 10:13:57 +00:00
2017-03-27 17:34:50 +01:00
2017-03-01 23:09:46 +00:00
2017-02-28 16:18:49 +00:00