lkml.org 
[lkml]   [2013]   [Jun]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH 1/3] pxa168_eth: Allocate receive queue initialized to zero
From
From: Lubomir Rintel <lkundrak@v3.sk>
Date: Tue, 18 Jun 2013 19:30:48 +0200

> Zero pointer in rx_skb or tx_skb is how respective *_deinit() functions find
> out that a skb slot is unallocated. If *_init() functions unsuccessfully return
> after the allocation (e.g. when subsequent dma_alloc_coherent() is not
> successful), this would result in attempt to kfree() invalid pointers.
>
> Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>

Applied.


\
 
 \ /
  Last update: 2013-06-20 08:01    [W:0.032 / U:0.352 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site