Re: [U-Boot] [PATCH 2/3] dm: sata: add null pointer check for dev

2019-01-25 Thread Marcel Ziswiler
Hi Simon On Fri, 2019-01-25 at 09:18 +1300, Simon Glass wrote: > Hi Marcel, > > On Fri, 25 Jan 2019 at 03:30, Marcel Ziswiler > wrote: > > From: Marcel Ziswiler > > > > Given ahci_get_ops() being a macro not checking anything make sure > > we > > only call it if we do indeed have a dev pointer

Re: [U-Boot] [PATCH 2/3] dm: sata: add null pointer check for dev

2019-01-24 Thread Simon Glass
Hi Marcel, On Fri, 25 Jan 2019 at 03:30, Marcel Ziswiler wrote: > > From: Marcel Ziswiler > > Given ahci_get_ops() being a macro not checking anything make sure we > only call it if we do indeed have a dev pointer. > > Signed-off-by: Marcel Ziswiler > > --- > > drivers/ata/sata.c | 27

[U-Boot] [PATCH 2/3] dm: sata: add null pointer check for dev

2019-01-24 Thread Marcel Ziswiler
From: Marcel Ziswiler Given ahci_get_ops() being a macro not checking anything make sure we only call it if we do indeed have a dev pointer. Signed-off-by: Marcel Ziswiler --- drivers/ata/sata.c | 27 +-- 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/