3c505: do not set pcb->data.raw beyond its size
authorRoel Kluin <roel.kluin@gmail.com>
Fri, 13 Feb 2009 00:52:31 +0000 (16:52 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 20 Feb 2009 22:40:22 +0000 (14:40 -0800)
commit952367c3f56b126ac04c88c7b3cb4f08d5708091
tree1bb018ca6fc452683445ab003fe1aa4967eaace8
parent64cc2eaf399ac38469833bda5d6b219d815d084d
3c505: do not set pcb->data.raw beyond its size

commit 501aa061bd68169a5b54c123641f8dfa9ad31545 upstream.

Ensure that we do not set pcb->data.raw beyond its size, print an error message
and return false if we attempt to. A timout message was printed one too early.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/3c505.c