[NEUS7920-477] wlbt: check mxlogger is configured before generating sync record
authorIvan Priest <i.priest@samsung.com>
Tue, 14 May 2019 11:56:50 +0000 (12:56 +0100)
committerKim Gunho <gunho.kim@samsung.com>
Fri, 28 Jun 2019 14:45:57 +0000 (23:45 +0900)
commit5a44acacf4d1917f6024b3941f7b006f4ba615ba
tree0a339516c6af8c3647d89beefd97bb5613ba9027
parent525f3f3ecb3bc3f3770a457867c2af6ea36ae84e
[NEUS7920-477] wlbt: check mxlogger is configured before generating sync record

The mxlogger sync record could be requested when driver is tearing
down, causing a kernel panic. Check the flag and reject memory
access if the logger is deconfigured.

Change-Id: If90d44d42eeb8a3d33fb36ae3aa8d756923cea48
SCSC-Bug-Id: SSB-52717
Signed-off-by: Ivan Priest <i.priest@samsung.com>
(cherry picked from commit 75d01666aee1e3ec27ee84bc1943f4bed31fe51b)
drivers/misc/samsung/scsc/mxlogger.c