[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20110131.205705.59690433.davem@davemloft.net>
Date: Mon, 31 Jan 2011 20:57:05 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: weil@...l.berlios.de
Cc: eric.dumazet@...il.com, tj@...nel.org, jpirko@...hat.com,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] enc28j60: Fix reading of transmit status vector
From: Stefan Weil <weil@...l.berlios.de>
Date: Fri, 28 Jan 2011 23:25:19 +0100
> This error was reported by cppcheck:
> drivers/net/enc28j60.c:815: error: Using sizeof for array given as function argument returns the size of pointer.
>
> The original code reads 4 or 8 bytes instead of TSV_SIZE (= 100) bytes.
> I just fixed the code, but did not run any tests.
>
> Signed-off-by: Stefan Weil <weil@...l.berlios.de>
Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists