diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2017-07-28 17:41:11 +0300 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2017-07-28 19:29:08 +0300 |
commit | c3327bde514d5945f5de1e28bed3eaa0c4d622ec (patch) | |
tree | 9c4b8d9598e2651b2c729355cbedb1ca5ea9bdbb /drivers/bluetooth/hci_h4.c | |
parent | 98b5798499b6614963e693dff5262de8d33b2cd0 (diff) | |
download | linux-c3327bde514d5945f5de1e28bed3eaa0c4d622ec.tar.gz linux-c3327bde514d5945f5de1e28bed3eaa0c4d622ec.tar.xz |
Bluetooth: btrtl: Fix a error code in rtl_load_config()
We accidentally return success if the kmemdup() fails. It results in
a NULL dereference in the caller.
Fixes: 1110a2dbe698 ("Bluetooth: btrtl: Add RTL8822BE Bluetooth device")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'drivers/bluetooth/hci_h4.c')
0 files changed, 0 insertions, 0 deletions