|
@@ -305,7 +305,8 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq)
|
|
|
result = -EINVAL;
|
|
|
break;
|
|
|
}
|
|
|
- pList = (PSBSSIDList)kmalloc(sizeof(SBSSIDList) + (sList.uItem * sizeof(SBSSIDItem)), (int)GFP_ATOMIC);
|
|
|
+ pList = (PSBSSIDList)kmalloc(sizeof(SBSSIDList) + (sList.uItem * sizeof(SBSSIDItem)),
|
|
|
+ GFP_ATOMIC);
|
|
|
if (pList == NULL) {
|
|
|
result = -ENOMEM;
|
|
|
break;
|
|
@@ -576,7 +577,8 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq)
|
|
|
result = -EINVAL;
|
|
|
break;
|
|
|
}
|
|
|
- pNodeList = (PSNodeList)kmalloc(sizeof(SNodeList) + (sNodeList.uItem * sizeof(SNodeItem)), (int)GFP_ATOMIC);
|
|
|
+ pNodeList = (PSNodeList)kmalloc(sizeof(SNodeList) + (sNodeList.uItem * sizeof(SNodeItem)),
|
|
|
+ GFP_ATOMIC);
|
|
|
if (pNodeList == NULL) {
|
|
|
result = -ENOMEM;
|
|
|
break;
|