]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/bluetooth/hci_h4.c
fix fs/sysv s_dirt handling
[karo-tx-linux.git] / drivers / bluetooth / hci_h4.c
index c0ce8134814e161e5da0b9f59635b9ce26e21983..3f038f5308a46064217b971f1f5cc6818d625553 100644 (file)
@@ -246,7 +246,7 @@ static int h4_recv(struct hci_uart *hu, void *data, int count)
                        BT_ERR("Can't allocate mem for new packet");
                        h4->rx_state = H4_W4_PACKET_TYPE;
                        h4->rx_count = 0;
-                       return 0;
+                       return -ENOMEM;
                }
 
                h4->rx_skb->dev = (void *) hu->hdev;