Re: Bug in ks8851.c

From: David Miller
Date: Tue Apr 01 2014 - 18:14:12 EST


From: "Nekludov, Max" <Max.Nekludov@xxxxxxxxxx>
Date: Tue, 1 Apr 2014 15:41:58 +0000

> Reset on RX failure and TX timeout.
>
> Electromagnetic noice can make device to not send TX interrupts.
> As result outgoing queue will be suspended forever.
> Also EMI can raise RX interrupt with zero value in KS_RXFC register.
>
> Patch attached.

netdev@xxxxxxxxxxxxxxx and the driver maintainer (as listed in
MAINTAINERS) is sufficient for submitting this patch, lists
such as 'trivial' and sending such patches to Linus directly
is not really appropriate.

As per your patch, please do not submit it as an attachment,
as per Documentation/SubmittingPatches, it should be the main
content with the commit message header line being in your
Subject.

Furthermore, in:

+static void ks8851_wdt_work(struct delayed_work *work)
+{
+ struct ks8851_net *ks = container_of(work, struct ks8851_net, wdt_work);
+ mutex_lock(&ks->lock);

You should have an empty line beteen local variable declarations
and where real code starts.


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/