xfs: Plug memory leak in xfs_attrmulti_attr_set
authorAndreas Gruenbacher <agruenba@redhat.com>
Tue, 3 Nov 2015 01:53:54 +0000 (12:53 +1100)
committerDave Chinner <david@fromorbit.com>
Tue, 3 Nov 2015 01:53:54 +0000 (12:53 +1100)
commit09cb22d2a57b51d7d052dfe508f260abc67b69b6
tree62713e458b2c302b69648a2bf4723d3f2467e2a1
parent86a21c79745ca97676cbd47f8608839382cc0448
xfs: Plug memory leak in xfs_attrmulti_attr_set

When setting attributes via XFS_IOC_ATTRMULTI_BY_HANDLE, the user-space
buffer is copied into a new kernel-space buffer via memdup_user; that
buffer then isn't freed.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_ioctl.c