caif-hsi: Added sanity check for length of CAIF frames
authorDaniel Martensson <daniel.martensson@stericsson.com>
Thu, 13 Oct 2011 11:29:28 +0000 (11:29 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Oct 2011 07:25:42 +0000 (03:25 -0400)
commit5bbed92d3d8dab1f28945eec9fb15b6f50bf8669
tree158b09ec74eb3d4c7fa8e46de0576bad21f4d94c
parent28bd2049428202cb3bc982536ed3de3c69ae120a
caif-hsi: Added sanity check for length of CAIF frames

Added sanity check for length of CAIF frames, and tear down of
CAIF link-layer device upon protocol error.

Signed-off-by: Sjur Brændeland <sjur.brandeland@stericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/caif/caif_hsi.c
include/net/caif/caif_hsi.h