Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
9p: clear dangling pointers in p9stat_free
p9stat_free is more of a cleanup function than a 'free' function as it only frees the content of the struct; there are chances of use-after-free if it is improperly used (e.g. p9stat_free called twice as it used to be possible to) Clearing dangling pointers makes the function idempotent and safer to use. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Dominique Martinet <[email protected]> Reported-by: [email protected]
- Loading branch information