Add a check for psmouse_do_detect(), when the detect is NULL pointer,
returning false, avoiding this possible NULL pointer exception.
Signed-off-by: Qiang Ma <redacted>
---
drivers/input/mouse/psmouse-base.c | 3 +++
1 file changed, 3 insertions(+)
Hi Qiang,
On Wed, May 19, 2021 at 11:23:35AM +0800, Qiang Ma wrote:
quoted hunk
Add a check for psmouse_do_detect(), when the detect is NULL pointer,
returning false, avoiding this possible NULL pointer exception.
Signed-off-by: Qiang Ma <redacted>
---
drivers/input/mouse/psmouse-base.c | 3 +++
1 file changed, 3 insertions(+)