]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7f563841c738b9790b7fcd70eee8868b6475ebc3
tree8395e43faa28ed863c1fe270ced3111ee66d3d3c
parentbf270c53a915defe67714a7c12f95fa4a10920d0
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