Message ID | e2406fbf-3a35-316a-4d38-b474c13d9120@users.sourceforge.net (mailing list archive) |
---|---|
State | Deferred |
Headers | show |
diff --git a/drivers/scsi/sg.c b/drivers/scsi/sg.c index 8ca10a2fc1a0..4a2db7ff14cc 100644 --- a/drivers/scsi/sg.c +++ b/drivers/scsi/sg.c @@ -1403,7 +1403,7 @@ sg_alloc(struct gendisk *disk, struct scsi_device *scsidp) int error; u32 k; - sdp = kzalloc(sizeof(Sg_device), GFP_KERNEL); + sdp = kzalloc(sizeof(*sdp), GFP_KERNEL); if (!sdp) return ERR_PTR(-ENOMEM);