[U-Boot] [PATCH V2 3/3] drivers: core: use strcmp when find device by name

Tom Rini trini at konsulko.com
Sun Jul 14 13:07:06 UTC 2019


On Wed, May 22, 2019 at 07:08:14AM +0000, Peng Fan wrote:

> `if (!strncmp(dev->name, name, strlen(name)))` might find out
> the wrong device, it might find out `dram_pll_ref_sel`, when name is
> `dram_pll`. So use strcmp to avoid such issue.
> 
> Signed-off-by: Peng Fan <peng.fan at nxp.com>
> Reviewed-by: Simon Glass <sjg at chromium.org>
> Reviewed-by: Bin Meng <bmeng.cn at gmail.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190714/7e238c89/attachment.sig>


More information about the U-Boot mailing list