]> git.baikalelectronics.ru Git - kernel.git/commit
gianfar: Fix overflow check and return value for gfar_get_cls_all()
authorBen Hutchings <bhutchings@solarflare.com>
Tue, 6 Sep 2011 12:44:25 +0000 (12:44 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Sep 2011 19:40:12 +0000 (15:40 -0400)
commit8df6cb1ee288a9541be2fcf05f3eb6d4fe4ea37f
tree5c620bea04a61301dbaa7ca5280e64caf76a732c
parent2face8f068bcf22bc42bc18f33ae841beba03391
gianfar: Fix overflow check and return value for gfar_get_cls_all()

This function may currently fill one entry beyond the end of the
array it is given.  It also doesn't return an error code in case
it does detect overflow.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/gianfar_ethtool.c