Skip to contentSkip to conversation

infiniband:cxgb4:Fix incorrect return statement in the function c4iw_reject_cr

PATCH Steve Wise 1 participant 1 message Aug 27, 2015 1 message not in the archive InfiniBand

lore
Share & tools
lore

Steve Wise

author NAK
#1 lore raw
In reply to a message not in the archive
Quoted 15 lines

-----Original Message-----
From: Nicholas Krause [mailto:[email protected]]
Sent: Wednesday, August 26, 2015 7:22 PM
To: [email protected]
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Subject: [PATCH] infiniband:cxgb4:Fix incorrect return statement in the function c4iw_reject_cr

This fixes the incorrect return statement in the function c4iw_reject_cr that returns the value zero directly to instead return the variable err as this function can fail when called and if so we will incorrectly return success rather then the correct status of a failed call to the caller of this particular function.

Quoted 2 lines

---

NAK.

The return code for these cpl handlers indicates if process_work() or other callers needs to free the skb. They are supposed to
return 0.