k2_fw_usb_api: prevent buffer overflow.
authorOleksij Rempel <linux@rempel-privat.de>
Thu, 18 Jul 2013 14:44:46 +0000 (16:44 +0200)
committerOleksij Rempel <linux@rempel-privat.de>
Thu, 18 Jul 2013 14:44:46 +0000 (16:44 +0200)
commite3e96797ec020bba955ae59e173044987e5d4806
treeeb99d472a2222e811321b7391b28f66cfbcd9993
parent78df7b491a39376a26e4144d80f69f7a28fb358f
k2_fw_usb_api: prevent buffer overflow.

This was reproduced on intel USB 3.0 controller.
After getting corrupt packet we was jumping bejond allocated buffer.
Insted of oopsing we can at lest warn hier.

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
target_firmware/magpie_fw_dev/target/hif/k2_fw_usb_api.c