commit | dee3c9cdeceeecc1f3491cf29992b9fb8b082b37 | [log] [tgz] |
---|---|---|
author | Seth Forshee <seth.forshee@canonical.com> | Fri Jul 13 12:49:02 2018 -0500 |
committer | Seth Forshee <seth.forshee@canonical.com> | Fri Jul 13 16:32:52 2018 -0500 |
tree | a6080193eaa369c5fa33131af527dd2d238168db | |
parent | 9669c7b24aa97c4ef10d6c65d7ecc305fbd5b9ca [diff] |
shiftfs: Handle multiple frees of single fs_context The fs_context free callback can be called multiple times for the same fs_context data, once during fsmount() and then again when the filesystem fd is closed. Deal with this by checking that fc->fs_private is not null before freeing private data and setting it to NULL when private data is freed. Signed-off-by: Seth Forshee <seth.forshee@canonical.com>