Thread (1 message) 1 message, 1 author, 2015-03-17

Re: [PATCH v7] af_packet: Fix some klocwork errors

From: Thomas Monjalon <hidden>
Date: 2015-03-17 21:34:44

quoted
quoted
quoted
Fix possible memory leak issue: free kvlist before return;
Fix possible resource lost issue: close qssockfd before return;

Signed-off-by: Changchun Ouyang <redacted>
---
Change in v7:
  - Remove unnecessary '!= NULL' check before freeing it; 

Change in v6:
  - Refine exit point;
 
Change in v5:
  - Initialize qsockfd with -1;
 
Change in v4:
  - Check sockfd in internals->rx_queue against 0;
 
Change in v3:
  - Also close sockets for all queues;
 
Change in v2:
  - Make the error exit point a common path.
Acked-by: Michael Qiu <redacted>
Acked-by: Neil Horman <redacted>
Acked-by: John W. Linville <redacted>
Applied, thanks
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help