From: Tom Rini Date: Fri, 8 Sep 2017 23:25:53 -0400 Subject: [U-Boot] [PATCH v3 2/4] block: ide: Fix block read/write with driver model In-Reply-To: References: <1504683022-23843-1-git-send-email-bmeng.cn@gmail.com> <1504683022-23843-2-git-send-email-bmeng.cn@gmail.com> Message-ID: <20170909032553.GY17058@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 Sat, Sep 09, 2017 at 08:30:44AM +0800, Bin Meng wrote: > Hi Tom, > > On Wed, Sep 6, 2017 at 3:30 PM, Bin Meng wrote: > > This converts the IDE driver to driver model so that block read and > > write are fully functional. > > > > Fixes: b7c6baef ("x86: Convert MMC to driver model") > > Reported-by: Heinrich Schuchardt > > Signed-off-by: Bin Meng > > > > Reviewed-by: Simon Glass > > Tested-by: Heinrich Schuchardt > > --- > > > > Changes in v3: > > - Updated BLK_XXX_SIZE usage > > > > Changes in v2: > > - Fixed 'fatls ide 0' issue > > > > drivers/block/blk-uclass.c | 2 +- > > drivers/block/ide.c | 70 ++++++++++++++++++++++++++++++++++++++++++++++ > > include/dm/uclass-id.h | 1 + > > 3 files changed, 72 insertions(+), 1 deletion(-) > > > > Will you take this series in 2017.09? I would swear that we declare vendor/etc as size + 1 so that we can ensure that size+1==NULL and only write up to size into the field. But the rest of this patch strncpy's to size+1. That feels wrong, but I'm not totally sure. Are you? Thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: