projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56d387e
)
BUG_ON on kernel misbehavior on A100U2W driver
author
Mikulas Patocka
<mpatocka@redhat.com>
Tue, 15 Jul 2008 21:18:38 +0000
(17:18 -0400)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Tue, 15 Jul 2008 21:30:56 +0000
(14:30 -0700)
With broken Sparc64 IOMMU accounting, the kernel submits larger requests
then allowed. Better to crash on BUG than corrupt memory.
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Acked-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/scsi/a100u2w.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/scsi/a100u2w.c
b/drivers/scsi/a100u2w.c
index 1e8bdd45783462ecda77c3413bfaab8b4aafe813..f5051f4301d78515f9cec1cf29331ff10db9e1cb 100644
(file)
--- a/
drivers/scsi/a100u2w.c
+++ b/
drivers/scsi/a100u2w.c
@@
-866,6
+866,7
@@
static void inia100_build_scb(struct orc_host * host, struct orc_scb * scb, stru
count_sg = scsi_dma_map(cmd);
BUG_ON(count_sg < 0);
+ BUG_ON(count_sg > TOTAL_SG_ENTRY);
/* Build the scatter gather lists */
if (count_sg) {