From patchwork Tue Mar 8 04:00:09 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinay Sawal X-Patchwork-Id: 617221 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 p2840QqB000743 for ; Tue, 8 Mar 2011 04:00:27 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754050Ab1CHEA0 (ORCPT ); Mon, 7 Mar 2011 23:00:26 -0500 Received: from sj-iport-3.cisco.com ([171.71.176.72]:10681 "EHLO sj-iport-3.cisco.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753933Ab1CHEAZ (ORCPT ); Mon, 7 Mar 2011 23:00:25 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhcGAAc5dU2rR7Ht/2dsb2JhbACYT44HdKIZi0iHZC+IYIViBIUdhxWGYA X-IronPort-AV: E=Sophos;i="4.62,282,1297036800"; d="scan'208";a="274543742" Received: from sj-core-1.cisco.com ([171.71.177.237]) by sj-iport-3.cisco.com with ESMTP; 08 Mar 2011 04:00:10 +0000 Received: from sjc-lds-347.cisco.com (sjc-lds-347.cisco.com [171.70.173.123]) by sj-core-1.cisco.com (8.13.8/8.14.3) with ESMTP id p2840A84019460; Tue, 8 Mar 2011 04:00:10 GMT Received: from sjc-lds-347.cisco.com (localhost [127.0.0.1]) by sjc-lds-347.cisco.com (8.13.1/8.13.1) with ESMTP id p28409on016293; Mon, 7 Mar 2011 20:00:09 -0800 Received: (from visawal@localhost) by sjc-lds-347.cisco.com (8.13.1/8.13.1/Submit) id p28409hE016292; Mon, 7 Mar 2011 20:00:09 -0800 From: Vinay Sawal To: sfrench@samba.org Cc: linux-cifs@vger.kernel.org, samba-technical@lists.samba.org, linux-kernel@vger.kernel.org, Vinay Sawal Subject: [PATCH] FC: cifs: Initialized an uninitialized variable Date: Mon, 7 Mar 2011 20:00:09 -0800 Message-Id: <1299556809-16194-1-git-send-email-vinaysawal@gmail.com> X-Mailer: git-send-email 1.6.2.4 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.6 (demeter1.kernel.org [140.211.167.41]); Tue, 08 Mar 2011 04:00:27 +0000 (UTC) diff --git a/fs/cifs/file.c b/fs/cifs/file.c index e964b1c..a9e5901 100644 --- a/fs/cifs/file.c +++ b/fs/cifs/file.c @@ -1819,7 +1819,7 @@ static ssize_t cifs_iovec_read(struct file *file, const struct iovec *iov, unsigned long nr_segs, loff_t *poffset) { - int rc; + int rc = -EFAULT; int xid; ssize_t total_read; unsigned int bytes_read = 0;