Commit: e3616b776ae0d50c94807ed970cb724518b8a47e
Parent: bf4ec513929bda951f54cc73fabbee3a7a12e3c7
Author: Roman Smirnov <r.smirnov@omp.ru>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2024-06-27 21:33:53
Tree: 5f8f15f46f6f5af041c6111a5a2711ea3ff2c67e

plugins/sixaxis: add NULL check in setup_device() btd_adapter_get_device() may return NULL on the next call stack: btd_adapter_get_device() adapter_create_device() device_create() device_new() g_try_malloc0() It is necessary to prevent this to avoid dereferencing a null pointer further.

Diffstat

M plugins/sixaxis.c | 5 +++++

1 files changed, 5 insertions(+), 0 deletions(-)

View Full Diff | Patch