3c505: do not set pcb->data.raw beyond its size
commit501aa061bd68169a5b54c123641f8dfa9ad31545
authorRoel Kluin <roel.kluin@gmail.com>
Fri, 13 Feb 2009 00:52:31 +0000 (12 16:52 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 13 Feb 2009 00:52:31 +0000 (12 16:52 -0800)
treec3824d1b8e3085566748b29fbfd9186d916119a3
parentf82da723398ff18d49275a5f03de6cae5f592e8e
3c505: do not set pcb->data.raw beyond its size

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>
drivers/net/3c505.c