From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Sun, 14 Jul 2019 09:07:06 -0400 Subject: [U-Boot] [PATCH V2 3/3] drivers: core: use strcmp when find device by name In-Reply-To: <20190522072201.5130-3-peng.fan@nxp.com> References: <20190522072201.5130-1-peng.fan@nxp.com> <20190522072201.5130-3-peng.fan@nxp.com> Message-ID: <20190714130706.GH5621@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > Reviewed-by: Simon Glass > Reviewed-by: Bin Meng 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: