Signed-off-by: Bruno Randolf <b...@einfach.org>
---
 drivers/net/wireless/ath/ath5k/base.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/drivers/net/wireless/ath/ath5k/base.c 
b/drivers/net/wireless/ath/ath5k/base.c
index 1da2f3f..2d15125 100644
--- a/drivers/net/wireless/ath/ath5k/base.c
+++ b/drivers/net/wireless/ath/ath5k/base.c
@@ -1219,8 +1219,10 @@ ath5k_rxbuf_setup(struct ath5k_softc *sc, struct 
ath5k_buf *bf)
 
        if (!skb) {
                skb = ath5k_rx_skb_alloc(sc, &bf->skbaddr);
-               if (!skb)
+               if (!skb) {
+                       ATH5K_ERR(sc, "%s: could not alloc skb\n", __func__);
                        return -ENOMEM;
+               }
                bf->skb = skb;
        }
 
@@ -1243,8 +1245,10 @@ ath5k_rxbuf_setup(struct ath5k_softc *sc, struct 
ath5k_buf *bf)
        ds->ds_link = bf->daddr;        /* link to self */
        ds->ds_data = bf->skbaddr;
        ret = ah->ah_setup_rx_desc(ah, ds, ah->common.rx_bufsize, 0);
-       if (ret)
+       if (ret) {
+               ATH5K_ERR(sc, "%s: could not setup RX desc\n", __func__);
                return ret;
+       }
 
        if (sc->rxlink != NULL)
                *sc->rxlink = bf->daddr;

_______________________________________________
ath5k-devel mailing list
ath5k-devel@lists.ath5k.org
https://lists.ath5k.org/mailman/listinfo/ath5k-devel

Reply via email to