From patchwork Thu Jan 21 05:00:44 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Darren Williams X-Patchwork-Id: 102652 Received: from lists.samba.org (fn.samba.org [216.83.154.106]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o4RCZlD3013176 for ; Thu, 27 May 2010 12:36:36 GMT Received: from fn.samba.org (localhost [127.0.0.1]) by lists.samba.org (Postfix) with ESMTP id 069F94661B; Thu, 27 May 2010 06:35:24 -0600 (MDT) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on fn.samba.org X-Spam-Level: X-Spam-Status: No, score=-6.6 required=3.8 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.2.5 X-Original-To: linux-cifs-client@lists.samba.org Delivered-To: linux-cifs-client@lists.samba.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Thu, 27 May 2010 12:36:36 +0000 (UTC) X-Greylist: delayed 350 seconds by postgrey-1.32 at fn.samba.org; Wed, 20 Jan 2010 22:14:19 MST Received: from ajax.nicta.com.au (ajax.nicta.com.au [221.199.217.11]) by lists.samba.org (Postfix) with ESMTP id 17476AD150 for ; Wed, 20 Jan 2010 22:14:18 -0700 (MST) Received: from atp-mbx1.it.nicta.com.au ([221.199.216.123] helo=atp-mbx1.in.nicta.com.au) by ajax.nicta.com.au with esmtp (Exim 4.69) (envelope-from ) id 1NXpAR-0001NJ-8O for linux-cifs-client@lists.samba.org; Thu, 21 Jan 2010 16:01:15 +1100 Received: from [131.203.142.10] (221.199.216.124) by atp-mbx1.in.nicta.com.au (221.199.216.123) with Microsoft SMTP Server (TLS) id 8.1.393.1; Thu, 21 Jan 2010 16:00:47 +1100 From: Darren Williams To: linux-cifs-client@lists.samba.org Date: Thu, 21 Jan 2010 18:00:44 +1300 Message-ID: <1264050044.3955.92.camel@eos> MIME-Version: 1.0 X-Mailer: Evolution 2.26.1 X-TM-AS-Product-Ver: SMEX-8.0.0.4125-6.000.1038-17144.000 X-TM-AS-Result: No--3.274800-8.000000-31 X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-SA-Exim-Connect-IP: 221.199.216.123 X-SA-Exim-Mail-From: darren.w@computer.org X-SA-Exim-Scanned: No (on ajax.nicta.com.au); SAEximRunCond expanded to false X-Mailman-Approved-At: Thu, 27 May 2010 06:34:19 -0600 Subject: [linux-cifs-client] [patch] Fix missing DFS referral increment X-BeenThere: linux-cifs-client@lists.samba.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: The Linux CIFS VFS client List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-cifs-client-bounces@lists.samba.org Errors-To: linux-cifs-client-bounces@lists.samba.org --- linux-2.6.31.6.new/fs/cifs/cifssmb.c.orig 2009-11-26 01:47:05.000000000 +1100 +++ linux-2.6.31.6.new/fs/cifs/cifssmb.c 2009-11-26 01:32:34.000000000 +1100 @@ -3952,7 +3952,7 @@ parse_DFS_referrals(TRANSACTION2_GET_DFS } /* collect neccessary data from referrals */ - for (i = 0; i < *num_of_nodes; i++) { + for (i = 0; i < *num_of_nodes; i++, ref++) { char *temp;samba-technical int max_len; struct dfs_info3_param *node = (*target_nodes)+i;