summaryrefslogtreecommitdiffstats
path: root/fs/ext4/xattr.c
diff options
context:
space:
mode:
authorPeter Huewe <peterhuewe@gmx.de>2011-02-21 21:01:42 -0500
committerTheodore Ts'o <tytso@mit.edu>2011-02-21 21:01:42 -0500
commit7dc576158d7e5cdff3349f78598fdb4080536342 (patch)
treee7be15a8ee8add729915c81e9cb39cd55d6b572d /fs/ext4/xattr.c
parentda488945f4bf4096f4ab6091938469bd8822cfec (diff)
downloadop-kernel-dev-7dc576158d7e5cdff3349f78598fdb4080536342.zip
op-kernel-dev-7dc576158d7e5cdff3349f78598fdb4080536342.tar.gz
ext4: Fix sparse warning: Using plain integer as NULL pointer
This patch fixes the warning "Using plain integer as NULL pointer", generated by sparse, by replacing the offending 0s with NULL. Signed-off-by: Peter Huewe <peterhuewe@gmx.de> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/xattr.c')
-rw-r--r--fs/ext4/xattr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/xattr.c b/fs/ext4/xattr.c
index fc32176..f4c03af 100644
--- a/fs/ext4/xattr.c
+++ b/fs/ext4/xattr.c
@@ -833,7 +833,7 @@ inserted:
new_bh = sb_getblk(sb, block);
if (!new_bh) {
getblk_failed:
- ext4_free_blocks(handle, inode, 0, block, 1,
+ ext4_free_blocks(handle, inode, NULL, block, 1,
EXT4_FREE_BLOCKS_METADATA);
error = -EIO;
goto cleanup;
OpenPOWER on IntegriCloud