diff options
Diffstat (limited to 'fs/xfs/xfs_ioctl.c')
-rw-r--r-- | fs/xfs/xfs_ioctl.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/xfs/xfs_ioctl.c b/fs/xfs/xfs_ioctl.c index ea7d85af5310..e939c20cb4de 100644 --- a/fs/xfs/xfs_ioctl.c +++ b/fs/xfs/xfs_ioctl.c | |||
@@ -482,6 +482,7 @@ xfs_attrmulti_attr_set( | |||
482 | __uint32_t flags) | 482 | __uint32_t flags) |
483 | { | 483 | { |
484 | unsigned char *kbuf; | 484 | unsigned char *kbuf; |
485 | int error; | ||
485 | 486 | ||
486 | if (IS_IMMUTABLE(inode) || IS_APPEND(inode)) | 487 | if (IS_IMMUTABLE(inode) || IS_APPEND(inode)) |
487 | return -EPERM; | 488 | return -EPERM; |
@@ -492,7 +493,9 @@ xfs_attrmulti_attr_set( | |||
492 | if (IS_ERR(kbuf)) | 493 | if (IS_ERR(kbuf)) |
493 | return PTR_ERR(kbuf); | 494 | return PTR_ERR(kbuf); |
494 | 495 | ||
495 | return xfs_attr_set(XFS_I(inode), name, kbuf, len, flags); | 496 | error = xfs_attr_set(XFS_I(inode), name, kbuf, len, flags); |
497 | kfree(kbuf); | ||
498 | return error; | ||
496 | } | 499 | } |
497 | 500 | ||
498 | int | 501 | int |