caif: Handle dev_queue_xmit errors.
Do proper handling of dev_queue_xmit errors in order to avoid double free of skb and leaks in error conditions. In cfctrl pending requests are removed when CAIF Link layer goes down. Signed-off-by: Sjur Brændeland <sjur.brandeland@stericsson.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
bee925db9a
commit
c85c2951d4
@ -124,6 +124,7 @@ int cfctrl_linkdown_req(struct cflayer *cfctrl, u8 linkid,
|
||||
|
||||
struct cflayer *cfctrl_create(void);
|
||||
struct cfctrl_rsp *cfctrl_get_respfuncs(struct cflayer *layer);
|
||||
void cfctrl_cancel_req(struct cflayer *layr, struct cflayer *adap_layer);
|
||||
int cfctrl_cancel_req(struct cflayer *layr, struct cflayer *adap_layer);
|
||||
void cfctrl_remove(struct cflayer *layr);
|
||||
|
||||
#endif /* CFCTRL_H_ */
|
||||
|
Reference in New Issue
Block a user