|
@@ -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;
|