This patch fixes accumulating of the header in case packet was requeued
in the error path.
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
err = sdio_writesb(data->func, REG_TDAT, skb->data, skb->len);
if (err < 0) {
err = sdio_writesb(data->func, REG_TDAT, skb->data, skb->len);
if (err < 0) {
sdio_writeb(data->func, 0x01, REG_PC_WRT, NULL);
return err;
}
sdio_writeb(data->func, 0x01, REG_PC_WRT, NULL);
return err;
}