From: Vladimir Kondratiev Date: Mon, 28 Jan 2013 16:31:09 +0000 (+0200) Subject: wil6210: fix wil_vring_init_tx status X-Git-Tag: v3.9-rc2~24^2~15^2^2~60^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c331997b6c9ad7f4b8075e6e60d3caa6e36f5938;p=profile%2Fivi%2Fkernel-x86-ivi.git wil6210: fix wil_vring_init_tx status In case vring setup with the firmware failed, success status was returned. fix it. Signed-off-by: Vladimir Kondratiev Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/ath/wil6210/txrx.c b/drivers/net/wireless/ath/wil6210/txrx.c index 1985951..64b971f 100644 --- a/drivers/net/wireless/ath/wil6210/txrx.c +++ b/drivers/net/wireless/ath/wil6210/txrx.c @@ -565,6 +565,7 @@ int wil_vring_init_tx(struct wil6210_priv *wil, int id, int size, if (reply.cmd.status != WMI_VRING_CFG_SUCCESS) { wil_err(wil, "Tx config failed, status 0x%02x\n", reply.cmd.status); + rc = -EINVAL; goto out_free; } vring->hwtail = le32_to_cpu(reply.cmd.tx_vring_tail_ptr);