Skip to contentSkip to conversation

connector: fix socket leak

PATCH Greg KH 1 participant 1 message Dec 30, 2021 1 message not in the archive

lore
Share & tools
lore

Greg KH

author
#1 lore raw
In reply to a message not in the archive
Quoted 3 lines · ycaibb

In main() of ucon.c, the socket may not be closed when send_msgs is true.

Please use your full name.

Quoted 9 lines
---
 samples/connector/ucon.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
samples/connector/ucon.c +0 -0
index fa17f864200e..4f9d93a5c107 100644

samples/connector/ucon.c int main(int argc, char *argv[]) · line 183

Quoted 5 lines
samples/connector/ucon.c +1 -1
@@ -180,7 +180,8 @@ int main(int argc, char *argv[])
 
 			ulog("%d messages have been sent to %08x.%08x.\n", i, data->id.idx, data->id.val);
 		}
-
+		

Always run your patches through scripts/checkpatch.pl before sending them out.

thanks,

greg k-h