]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/scsi/sr_ioctl.c
Allocate 96 bytes for SCSI sense data reply
[karo-tx-linux.git] / drivers / scsi / sr_ioctl.c
index 5d02ff4db6cc1e050d94ee83fa24899d9dc9050a..b65462f764849bce89b7c7213a4881a1e4abb40c 100644 (file)
@@ -192,7 +192,7 @@ int sr_do_ioctl(Scsi_CD *cd, struct packet_command *cgc)
        SDev = cd->device;
 
        if (!sense) {
-               sense = kmalloc(sizeof(*sense), GFP_KERNEL);
+               sense = kmalloc(SCSI_SENSE_BUFFERSIZE, GFP_KERNEL);
                if (!sense) {
                        err = -ENOMEM;
                        goto out;