Don't kfree_skb() after submitting the repurposed SKB
[elmcan.git] / module / can327.c
index 3572cfbeddbde30433b3f9e19c23777949d4ea4a..ae4d3c17bda1eadb541b789bcfb998c4f0b3f6b5 100644 (file)
@@ -518,7 +518,6 @@ static int can327_parse_frame(struct can327 *elm, size_t len)
                 * However, this will correctly drop the state machine back into
                 * command mode.
                 */
-               kfree_skb(skb);
                return -ENODATA;
        }