From: Wootak Jung Date: Mon, 23 Sep 2019 08:32:09 +0000 (+0900) Subject: Fix NULL pointer dereferencing issue X-Git-Tag: accepted/tizen/5.5/unified/20191031.004956~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d5e2c186af2187e7f71bae0d30854f15a70c2b08;p=platform%2Fupstream%2Fbluez.git Fix NULL pointer dereferencing issue Change-Id: I42db1cb8239519c6d796a0e83bd08c0aca5498ad --- diff --git a/profiles/input/device.c b/profiles/input/device.c index 754becc..1625264 100644 --- a/profiles/input/device.c +++ b/profiles/input/device.c @@ -1539,6 +1539,8 @@ static struct input_device *find_device_role(const bdaddr_t *src, /* This will make sure we have hid device service for device */ device_probe_profiles(device, NULL); service = btd_device_get_service(device, HID_DEVICE_UUID); + if (service == NULL) + return NULL; } return btd_service_get_user_data(service);