Re: [PATCH] ieee1394: sbp2: avoid DMA bounce buffers for ORBs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On  8 Aug, Stefan Richter wrote:
> --- linux-2.6.27-rc2.orig/drivers/ieee1394/sbp2.c
> +++ linux-2.6.27-rc2/drivers/ieee1394/sbp2.c
> @@ -531,7 +531,7 @@ static int sbp2util_create_command_orb_p
>  	int i, orbs = sbp2_serialize_io ? 2 : SBP2_MAX_CMDS;
>  
>  	for (i = 0; i < orbs; i++) {
> -		cmd = kzalloc(sizeof(*cmd), GFP_KERNEL);
> +		cmd = kzalloc(sizeof(*cmd), GFP_KERNEL | GFP_DMA32);
>  		if (!cmd)
>  			return -ENOMEM;
>  		cmd->command_orb_dma = dma_map_single(hi->host->device.parent,
> 

This patch is bogus.

I cannot use GFP_DMA32 in slab allocations.
-- 
Stefan Richter
-=====-==--- =--- -=---
http://arcgraph.de/sr/

--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux