commit | dc50ddcd4c58a5a0226038307d6ef884bec9f8c2 | [log] [tgz] |
---|---|---|
author | Stephane Grosjean <s.grosjean@peak-system.com> | Fri Nov 28 14:08:48 2014 +0100 |
committer | Marc Kleine-Budde <mkl@pengutronix.de> | Sat Dec 06 19:11:18 2014 +0100 |
tree | 167b64ab65c8d20e118a2d6a11bc95ccd507c7cd | |
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>