From patchwork Tue Nov 9 06:57:41 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suresh Jayaraman X-Patchwork-Id: 310252 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oA96vqs7003750 for ; Tue, 9 Nov 2010 06:57:52 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751917Ab0KIG5u (ORCPT ); Tue, 9 Nov 2010 01:57:50 -0500 Received: from victor.provo.novell.com ([137.65.250.26]:56301 "EHLO victor.provo.novell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751204Ab0KIG5t (ORCPT ); Tue, 9 Nov 2010 01:57:49 -0500 Received: from localhost (prv-ext-foundry1int.gns.novell.com [137.65.251.240]) by victor.provo.novell.com with ESMTP; Mon, 08 Nov 2010 23:57:43 -0700 From: Suresh Jayaraman To: Steve French Cc: linux-cifs@vger.kernel.org, Christoph Hellwig Subject: [PATCH] cifs: fix a memleak in cifs_setattr_nounix() Date: Tue, 9 Nov 2010 12:27:41 +0530 Message-Id: <1289285861-12033-1-git-send-email-sjayaraman@suse.de> X-Mailer: git-send-email 1.7.1 Sender: linux-cifs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-cifs@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Tue, 09 Nov 2010 06:57:52 +0000 (UTC) diff --git a/fs/cifs/inode.c b/fs/cifs/inode.c index 39869c3..ef3a55b 100644 --- a/fs/cifs/inode.c +++ b/fs/cifs/inode.c @@ -2177,7 +2177,6 @@ cifs_setattr_nounix(struct dentry *direntry, struct iattr *attrs) setattr_copy(inode, attrs); mark_inode_dirty(inode); - return 0; cifs_setattr_exit: kfree(full_path);