Patch "iw_cxgb3: Fix incorrectly returning error on success" has been added to the 3.14-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
iw_cxgb3: Fix incorrectly returning error on success
to the 3.14-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
iw_cxgb3-fix-incorrectly-returning-error-on-success.patch
and it can be found in the queue-3.14 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
67f1aee6f45059fd6b0f5b0ecb2c97ad0451f6b3Mon Sep 17 00:00:00 2001
From: Hariprasad S <[email protected]>
Date: Fri, 11 Dec 2015 13:59:17 +0530
Subject: iw_cxgb3: Fix incorrectly returning error on success
From: Hariprasad S <[email protected]>
commit 67f1aee6f45059fd6b0f5b0ecb2c97ad0451f6b3 upstream.
The cxgb3_*_send() functions return NET_XMIT_ values, which are positive integers values. So don't treat positive return values as an error.
--- drivers/infiniband/hw/cxgb3/iwch_cm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/infiniband/hw/cxgb3/iwch_cm.c +2 -2
@@ -149,7 +149,7 @@ static int iwch_l2t_send(struct t3cdev * error =l2t_send (tdev, skb, l2e);if (error <0 )kfree_skb (skb); -return error; +return error <0 ? error :0 ; }int iwch_cxgb3_ofld_send (struct t3cdev *tdev,struct sk_buff *skb)
@@ -165,7 +165,7 @@ int iwch_cxgb3_ofld_send(struct t3cdev * error =cxgb3_ofld_send (tdev, skb);if (error <0 )kfree_skb (skb); -return error; +return error <0 ? error :0 ; }static void release_tid (struct t3cdev *tdev,u32 hwtid,struct sk_buff *skb)
Patches currently in stable-queue which might be from [email protected] are
queue-3.14/iw_cxgb3-fix-incorrectly-returning-error-on-success.patch