/[linux-patches]/genpatches-2.6/tags/2.6.13-4/1000_1_aacraid-bad-BUG_ON_fix.patch
Gentoo

Contents of /genpatches-2.6/tags/2.6.13-4/1000_1_aacraid-bad-BUG_ON_fix.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 168 - (show annotations) (download)
Sun Sep 18 11:19:29 2005 UTC (8 years, 6 months ago) by dsd
File size: 1542 byte(s)
2.6.13-4 release
1 From linux-kernel-owner+chrisw=40osdl.org-S1030193AbVIAPWg@vger.kernel.org Thu Sep 1 08:23:18 2005
2 Subject: [PATCH] aacraid: 2.6.13 aacraid bad BUG_ON fix
3 From: Mark Haverkamp <markh@osdl.org>
4 To: James Bottomley <James.Bottomley@steeleye.com>,
5 Andrew Morton <akpm@osdl.org>
6 Cc: linux-scsi <linux-scsi@vger.kernel.org>,
7 linux-kernel <linux-kernel@vger.kernel.org>,
8 Mark Salyzyn <mark_salyzyn@adaptec.com>
9 Date: Thu, 01 Sep 2005 08:19:23 -0700
10
11 This was noticed by Doug Bazamic and the fix found by Mark Salyzyn at
12 Adaptec.
13
14 There was an error in the BUG_ON() statement that validated the
15 calculated fib size which can cause the driver to panic.
16
17 Signed-off-by: Mark Haverkamp <markh@osdl.org>
18 Acked-by: James Bottomley <James.Bottomley@SteelEye.com>
19 Signed-off-by: Chris Wright <chrisw@osdl.org>
20 Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
21 ---
22 drivers/scsi/aacraid/aachba.c | 2 +-
23 1 files changed, 1 insertion(+), 1 deletion(-)
24
25 Index: linux-2.6.13.y/drivers/scsi/aacraid/aachba.c
26 ===================================================================
27 --- linux-2.6.13.y.orig/drivers/scsi/aacraid/aachba.c
28 +++ linux-2.6.13.y/drivers/scsi/aacraid/aachba.c
29 @@ -968,7 +968,7 @@ static int aac_read(struct scsi_cmnd * s
30 fibsize = sizeof(struct aac_read64) +
31 ((le32_to_cpu(readcmd->sg.count) - 1) *
32 sizeof (struct sgentry64));
33 - BUG_ON (fibsize > (sizeof(struct hw_fib) -
34 + BUG_ON (fibsize > (dev->max_fib_size -
35 sizeof(struct aac_fibhdr)));
36 /*
37 * Now send the Fib to the adapter

  ViewVC Help
Powered by ViewVC 1.1.20