Search Linux Wireless

Re: [PATCH] b43: Fix possible NULL pointer dereference in DMA code

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

 



On Thu, Jun 12, 2008 at 11:58 AM, Michael Buesch <mb@xxxxxxxxx> wrote:
> This fixes a possible NULL pointer dereference in an error path of the
> DMA allocation error checking code. This is also necessary for a future
> DMA API change that is on its way into the mainline kernel that adds
> an additional dev parameter to dma_mapping_error().
>
> This patch moves the whole struct b43_dmaring struct initialization
> right before any DMA allocation operation.
>

Reported-by: Miles Lane <miles.lane@xxxxxxxxx>

> Signed-off-by: Michael Buesch <mb@xxxxxxxxx>

Thanks :-)


Vegard

-- 
"The animistic metaphor of the bug that maliciously sneaked in while
the programmer was not looking is intellectually dishonest as it
disguises that the error is the programmer's own creation."
	-- E. W. Dijkstra, EWD1036
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux