Re: [PATCH] spi: bitbang: Fix NULL pointer dereference in spi_unregister_master

From: Axel Lin
Date: Thu May 16 2019 - 04:39:09 EST


YueHaibing <yuehaibing@xxxxxxxxxx> æ 2019å5æ16æ éå äå3:57åéï
>
> If spi_register_master fails in spi_bitbang_start
> because device_add failure, We should return the
> error code other than 0, otherwise calling
> spi_bitbang_stop may trigger NULL pointer dereference
> like this:

Reviewed-by: Axel Lin <axel.lin@xxxxxxxxxx>