Looks good to me. Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@xxxxxxx> On 2/20/20 7:23 PM, Bart Van Assche wrote: > If null_add_dev() fails then null_del_dev() is called with a NULL argument. > Make null_del_dev() handle this scenario correctly. This patch fixes the > following KASAN complaint: > > null-ptr-deref in null_del_dev+0x28/0x280 [null_blk] > Read of size 8 at addr 0000000000000000 by task find/1062