diff options
author | Stephane Grosjean <s.grosjean@peak-system.com> | 2014-11-28 14:08:48 +0100 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2014-12-06 19:11:18 +0100 |
commit | dc50ddcd4c58a5a0226038307d6ef884bec9f8c2 (patch) | |
tree | 167b64ab65c8d20e118a2d6a11bc95ccd507c7cd /lib/flex_array.c | |
parent | f2a01517f2a1040a0b156f171a7cefd748f2fd03 (diff) |
can: peak_usb: fix memset() usage
This patchs fixes a misplaced call to memset() that fills the request
buffer with 0. The problem was with sending PCAN_USBPRO_REQ_FCT
requests, the content set by the caller was thus lost.
With this patch, the memory area is zeroed only when requesting info
from the device.
Signed-off-by: Stephane Grosjean <s.grosjean@peak-system.com>
Cc: linux-stable <stable@vger.kernel.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'lib/flex_array.c')
0 files changed, 0 insertions, 0 deletions