2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-26 14:14:01 +08:00
linux-next/Documentation/accounting
Jesper Juhl 0de4b95409 doc: getdelays.c: remember to close() socket on error in create_nl_socket()
If the call to setsockopt() fails in
Documentation/accounting/getdelays.c::create_nl_socket() we return -1
without closing the socket, thus leaking it when the 'fd' variable
goes out of scope.

Easily fixed by just jumping to the 'error' label instead of returning
since we do the proper cleanup there.

While I was there I noticed that the error message that is printet if
setsockopt() fails was broken over two lines - put that on a single
line so it is easier to grep for.

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
2012-09-01 09:58:59 -07:00
..
.gitignore .gitignore updates 2008-10-30 11:38:45 -07:00
cgroupstats.txt Documentation: update cgroupfs mount point 2011-06-15 21:52:50 -07:00
delay-accounting.txt per-task-delay-accounting: update document and getdelays.c for memory reclaim 2008-07-25 10:53:47 -07:00
getdelays.c doc: getdelays.c: remember to close() socket on error in create_nl_socket() 2012-09-01 09:58:59 -07:00
Makefile docsrc: build Documentation/ sources 2008-08-12 16:07:30 -07:00
taskstats-struct.txt Documentation cleanup: trivial misspelling, punctuation, and grammar corrections. 2008-07-26 12:00:06 -07:00
taskstats.txt Fix typos in /Documentation : 'U-Z' 2006-11-30 04:58:40 +01:00