From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Frysinger Date: Mon, 4 Jul 2011 23:44:54 -0400 Subject: [U-Boot] [PATCH 1/2] net/eth.c: make eth_get_dev_by_name(NULL) safe In-Reply-To: <1309775392-8282-1-git-send-email-helmut.raiger@hale.at> References: <4E118AD9.9000200@hale.at> <1309775392-8282-1-git-send-email-helmut.raiger@hale.at> Message-ID: <201107042344.55693.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, July 04, 2011 06:29:51 helmut.raiger at hale.at wrote: > eth_get_dev_by_name() is not safe to use for devname being NULL > as it uses strcmp. This patch makes it return NULL if devname NULL > is passed. i'm not sure about this. passing NULL is wrong, and the caller should catch that shouldnt it ? -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/20110704/83be5d2f/attachment.pgp