On Mon, Oct 22, 2018 at 06:31:08PM +0200, Martin Fuzzey wrote: > When the "w1 bus" command is used with no bus master present > a data abort may occur. > > This is because uclass_first_device() returns zero, but sets the output > struct udevice pointer to NULL in the no device found case. > > Fix w1_get_bus() to account for this and return an error code > as is expected by the callers. > > Signed-off-by: Martin Fuzzey <martin.fuzzey@flowbird.group> > Reviewed-by: Eugen Hristev <eugen.hris...@microchip.com>
Applied to u-boot/master, thanks! -- Tom
signature.asc
Description: PGP signature
_______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot