sfc: Fix assertions in efx_filter_rfs()
authorBen Hutchings <bhutchings@solarflare.com>
Fri, 24 Jun 2011 23:22:08 +0000 (00:22 +0100)
committerBen Hutchings <bhutchings@solarflare.com>
Fri, 24 Jun 2011 23:43:50 +0000 (00:43 +0100)
commit589327905cf0ce4402f7fb1ed29682f7ae68a82e
tree8395e43faa28ed863c1fe270ced3111ee66d3d3c
parenta659b2a94d87add999229ecd9f2f56817d5d737b
sfc: Fix assertions in efx_filter_rfs()

This function is intended to assert (when DEBUG is defined) that the
skb header area includes the header fields it's looking at, which RFS
should already have pulled.  But it uses pskb_may_pull(), which will
attempt to pull more data if necesary.  It must instead compare
skb_headlen() with the required length.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
drivers/net/sfc/filter.c