b43: N-PHY: handle allocation fail in samples generation
[safe/jmp/linux-2.6] / drivers / connector / cn_queue.c
index 163c3e3..210338e 100644 (file)
@@ -83,8 +83,8 @@ void cn_queue_wrapper(struct work_struct *work)
 
        d->callback(msg, nsp);
 
-       d->destruct_data(d->ddata);
-       d->ddata = NULL;
+       kfree_skb(d->skb);
+       d->skb = NULL;
 
        kfree(d->free);
 }