]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: btrtl: Fix a error code in rtl_load_config()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 28 Jul 2017 14:41:11 +0000 (17:41 +0300)
committerJohan Hedberg <johan.hedberg@intel.com>
Fri, 28 Jul 2017 16:29:08 +0000 (19:29 +0300)
commit900e5a0cd05987e558967d3a494d9f8208ad83f5
tree9c4b8d9598e2651b2c729355cbedb1ca5ea9bdbb
parentbc616265ad317d3e44b84a1bbd8bd4c0eb27d66f
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: 806eb20c6caa ("Bluetooth: btrtl: Add RTL8822BE Bluetooth device")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
drivers/bluetooth/btrtl.c