lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Sat, 20 Mar 2010 20:59:53 -0700 (PDT)
From:	Sage Weil <sage@...dream.net>
To:	Dan Carpenter <error27@...il.com>
cc:	ceph-devel@...ts.sourceforge.net, kernel-janitors@...r.kernel.org,
	linux-kernel@...r.kernel.org
Subject: Re: [ceph-devel] [patch] ceph: cleanup: remove dead code

On Sat, 20 Mar 2010, Dan Carpenter wrote:

> "xattr" is never NULL here.  We took care of that in the previous
> if statement block.
> 
> Signed-off-by: Dan Carpenter <error27@...il.com>
> 
> diff --git a/fs/ceph/xattr.c b/fs/ceph/xattr.c
> index 37d6ce6..65b0e9b 100644
> --- a/fs/ceph/xattr.c
> +++ b/fs/ceph/xattr.c
> @@ -185,12 +185,6 @@ static int __set_xattr(struct ceph_inode_info *ci,
>  		ci->i_xattrs.names_size -= xattr->name_len;
>  		ci->i_xattrs.vals_size -= xattr->val_len;
>  	}
> -	if (!xattr) {
> -		pr_err("__set_xattr ENOMEM on %p %llx.%llx xattr %s=%s\n",
> -		       &ci->vfs_inode, ceph_vinop(&ci->vfs_inode), name,
> -		       xattr->val);
> -		return -ENOMEM;
> -	}
>  	ci->i_xattrs.names_size += name_len;
>  	ci->i_xattrs.vals_size += val_len;
>  	if (val)

Applied, thanks!
sage
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ