void print_MsduDataHeader(TI_HANDLE hMemMngr, mem_MSDU_T *pMsdu)
{
mem_BD_T *pBd;
- UINT8 tempBuffer[40],*pTempBuffer;
+ UINT8 tempBuffer[60],*pTempBuffer;
UINT32 lengthToPrint = 40;
UINT32 i;
int res, aval_data_size = ((char *) req + sizeof(*req)) - (char *)&req->user_data_pointer; /* = ~4 bytes */
/*int is_get_cmd = (req->cmd_type & IOCTL_GET);*/
+ if ((req->cmd >> 16) != FILE_DEVICE_UNKNOWN) {
+ printk(KERN_ERR "rejecting ioctl %08x\n", (int)req->cmd);
+ return -EINVAL;
+ }
+
print_deb("ti1610_do_ioctl(cmd=%lu(%s%s)) - user_data_pointer=0x%lx, len = %lu, aval_data_size=%d\n",
req->cmd,
(req->cmd_type & IOCTL_GET) ? "GET" : "", (req->cmd_type & IOCTL_SET) ? "SET" : "",
otherwise allocate from virtual pool.
*/
/* 2 pages */
- if (Size < 2 * 4096)
+ //if (Size < 2 * 4096)
+ if (1)
{
- blk = kmalloc(total_size, GFP_ATOMIC);
+ blk = kzalloc(total_size, GFP_KERNEL);
+ //blk = kmalloc(total_size, GFP_ATOMIC);
if (!blk)
return NULL;
blk->f_free = (os_free)kfree;