From: Yue Haibing <yuehaibing@xxxxxxxxxx> Date: Fri, 22 Feb 2019 15:37:58 +0800 > From: YueHaibing <yuehaibing@xxxxxxxxxx> > > KASAN report this: . .. > nfc_llcp_build_tlv will return NULL on fails, caller should check it, > otherwise will trigger a NULL dereference. > > Reported-by: Hulk Robot <hulkci@xxxxxxxxxx> > Fixes: eda21f16a5ed ("NFC: Set MIU and RW values from CONNECT and CC LLCP frames") > Fixes: d646960f7986 ("NFC: Initial LLCP support") > Signed-off-by: YueHaibing <yuehaibing@xxxxxxxxxx> Applied and queued up for -stable, thanks.