From: Mike Frysinger Date: Mon, 22 Aug 2011 12:05:24 -0400 Subject: [U-Boot] [PATCH 1/2] net/eth.c: throw BUG for eth_get_dev_by_name(NULL) In-Reply-To: <1314008237-24180-1-git-send-email-helmut.raiger@hale.at> References: <4E5229E3.6020704@mvista.com> <1314008237-24180-1-git-send-email-helmut.raiger@hale.at> Message-ID: <201108221205.25714.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Monday, August 22, 2011 06:17:17 Helmut Raiger wrote: > eth_get_dev_by_name() is not safe to use for devname being NULL > as it uses strcmp. This patch makes it fail with a BUG(). Acked-by: Mike Frysinger -mike -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part. Url : http://lists.denx.de/pipermail/u-boot/attachments/20110822/d1a3f838/attachment.pgp