diff mbox

FC: cifs: Initialized an uninitialized variable

Message ID 1299556809-16194-1-git-send-email-vinaysawal@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Vinay Sawal March 8, 2011, 4 a.m. UTC
None
diff mbox

Patch

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;