|
@@ -862,7 +862,7 @@ static scq_info *get_scq(ns_dev *card, int size, u32 scd)
|
|
if (size != VBR_SCQSIZE && size != CBR_SCQSIZE)
|
|
if (size != VBR_SCQSIZE && size != CBR_SCQSIZE)
|
|
return NULL;
|
|
return NULL;
|
|
|
|
|
|
- scq = kmalloc(sizeof(scq_info), GFP_KERNEL);
|
|
|
|
|
|
+ scq = kmalloc(sizeof(*scq), GFP_KERNEL);
|
|
if (!scq)
|
|
if (!scq)
|
|
return NULL;
|
|
return NULL;
|
|
scq->org = dma_alloc_coherent(&card->pcidev->dev,
|
|
scq->org = dma_alloc_coherent(&card->pcidev->dev,
|