git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[SCSI] aacraid: bad BUG_ON fix
[safe/jmp/linux-2.6]
/
drivers
/
scsi
/
aacraid
/
aachba.c
diff --git
a/drivers/scsi/aacraid/aachba.c
b/drivers/scsi/aacraid/aachba.c
index
83bfab7
..
a8e3dfc
100644
(file)
--- a/
drivers/scsi/aacraid/aachba.c
+++ b/
drivers/scsi/aacraid/aachba.c
@@
-972,7
+972,7
@@
static int aac_read(struct scsi_cmnd * scsicmd, int cid)
fibsize = sizeof(struct aac_read64) +
((le32_to_cpu(readcmd->sg.count) - 1) *
sizeof (struct sgentry64));
fibsize = sizeof(struct aac_read64) +
((le32_to_cpu(readcmd->sg.count) - 1) *
sizeof (struct sgentry64));
- BUG_ON (fibsize > (
sizeof(struct hw_fib)
-
+ BUG_ON (fibsize > (
dev->max_fib_size
-
sizeof(struct aac_fibhdr)));
/*
* Now send the Fib to the adapter
sizeof(struct aac_fibhdr)));
/*
* Now send the Fib to the adapter