[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20090812.221550.173145055.davem@davemloft.net>
Date: Wed, 12 Aug 2009 22:15:50 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: lk-netdev@...netdev.nosense.org
Cc: acme@...stprotocols.net, netdev@...r.kernel.org
Subject: Re: Use correct NET_RX_* returns for atalk_rcv()
From: Mark Smith <lk-netdev@...netdev.nosense.org>
Date: Fri, 7 Aug 2009 18:51:22 +0930
>
> In all rx'd SKB cases, atalk_rcv() either eventually jumps to or falls through
> to the label out:, which returns numeric 0. Numeric 0 corresponds to
> NET_RX_SUCCESS, which is incorrect in failed SKB cases.
>
> This patch makes atalk_rcv() provide the correct returns by:
>
> o explicitly returning NET_RX_SUCCESS in the two success cases
> o having the out: label return NET_RX_DROP, instead of numeric 0
> o making the failed SKB labels and processing more consistent with other
> _rcv() routines in the kernel, simplifying validation and removing a
> backwards goto
>
> Signed-off-by: Mark Smith <markzzzsmith@...oo.com.au>
Applied.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists