projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
349cd7c
)
[SCSI] aacraid: Check scsi_bios_ptabe return code
author
Mark Haverkamp
<markh@osdl.org>
Wed, 30 Nov 2005 20:01:39 +0000
(12:01 -0800)
committer
James Bottomley
<jejb@mulgrave.(none)>
Thu, 1 Dec 2005 21:59:44 +0000
(15:59 -0600)
Received from Mark Salyzyn.
scsi_bios_ptable return value is not being checked in aac_biosparm.
Signed-off-by: Mark Haverkamp <markh@osdl.org>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/aacraid/linit.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/aacraid/linit.c
b/drivers/scsi/aacraid/linit.c
index ab383d1f59e2e29489f48e88064093d51e8773e0..3cb68af904561ddeafac166a2b10fb053b3b8398 100644
(file)
--- a/
drivers/scsi/aacraid/linit.c
+++ b/
drivers/scsi/aacraid/linit.c
@@
-325,6
+325,8
@@
static int aac_biosparm(struct scsi_device *sdev, struct block_device *bdev,
* translations ( 64/32, 128/32, 255/63 ).
*/
buf = scsi_bios_ptable(bdev);
+ if (!buf)
+ return 0;
if(*(__le16 *)(buf + 0x40) == cpu_to_le16(0xaa55)) {
struct partition *first = (struct partition * )buf;
struct partition *entry = first;