aboutsummaryrefslogtreecommitdiff
path: root/lib/netdev-notifier-error-inject.c
diff options
context:
space:
mode:
authorChristian Brauner <[email protected]>2021-12-30 20:23:09 +0100
committerLinus Torvalds <[email protected]>2021-12-30 15:12:13 -0800
commit012e332286e2bb9f6ac77d195f17e74b2963d663 (patch)
tree498edad3b725579e666efa4bec12762c9a071a13 /lib/netdev-notifier-error-inject.c
parent74c78b4291b4466b44a57b3b7c3b98ad02628686 (diff)
fs/mount_setattr: always cleanup mount_kattr
Make sure that finish_mount_kattr() is called after mount_kattr was succesfully built in both the success and failure case to prevent leaking any references we took when we built it. We returned early if path lookup failed thereby risking to leak an additional reference we took when building mount_kattr when an idmapped mount was requested. Cc: [email protected] Cc: [email protected] Fixes: 9caccd41541a ("fs: introduce MOUNT_ATTR_IDMAP") Signed-off-by: Christian Brauner <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions