diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2013-06-05 04:16:55 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-06-13 19:32:28 +0200 |
commit | 6ea81c415574acb88faca905e1d7316057e90a5b (patch) | |
tree | 79d0bddaffd5aef3aab40e378e99dbdc2c1090e7 /drivers/bluetooth | |
parent | Bluetooth: Add support for Mediatek Bluetooth device [0e8d:763f] (diff) | |
download | linux-6ea81c415574acb88faca905e1d7316057e90a5b.tar.xz linux-6ea81c415574acb88faca905e1d7316057e90a5b.zip |
Bluetooth: btmrvl: fix error return code in btmrvl_sdio_card_to_host()
Fix to return -ENOMEM in the skb alloc error handling case
instead of 0, as done elsewhere in this function.
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/bluetooth')
-rw-r--r-- | drivers/bluetooth/btmrvl_sdio.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/bluetooth/btmrvl_sdio.c b/drivers/bluetooth/btmrvl_sdio.c index 13693b7a0d5c..75c262694632 100644 --- a/drivers/bluetooth/btmrvl_sdio.c +++ b/drivers/bluetooth/btmrvl_sdio.c @@ -554,6 +554,7 @@ static int btmrvl_sdio_card_to_host(struct btmrvl_private *priv) skb = bt_skb_alloc(num_blocks * blksz + BTSDIO_DMA_ALIGN, GFP_ATOMIC); if (skb == NULL) { BT_ERR("No free skb"); + ret = -ENOMEM; goto exit; } |