linux/drivers/net/xen-netback
Paul Durrant f86911e2de xen-netback: correct length checks on hash copy_ops
The length checks on the grant table copy_ops for setting hash key and
hash mapping are checking the local 'len' value which is correct in
the case of the former but not the latter. This was picked up by
static analysis checks.

This patch replaces checks of 'len' with 'copy_op.len' in both cases
to correct the incorrect check, keep the two checks consistent, and to
make it clear what the checks are for.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Wei Liu <wei.liu2@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-05-20 10:51:03 -07:00
..
common.h xen-netback: add control protocol implementation 2016-05-16 13:35:56 -04:00
hash.c xen-netback: correct length checks on hash copy_ops 2016-05-20 10:51:03 -07:00
interface.c xen-netback: pass hash value to the frontend 2016-05-16 13:35:56 -04:00
Makefile xen-netback: add control protocol implementation 2016-05-16 13:35:56 -04:00
netback.c xen-netback: use hash value from the frontend 2016-05-16 13:35:56 -04:00
xenbus.c xen-netback: add control ring boilerplate 2016-05-16 13:35:56 -04:00