]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
Documentation/watchdog: close the fd when cmdline arg given
authorDevendra Naga <devendra.aaru@gmail.com>
Mon, 14 May 2012 18:12:02 +0000 (23:42 +0530)
committerWim Van Sebroeck <wim@iguana.be>
Wed, 23 May 2012 14:27:40 +0000 (16:27 +0200)
commit3c2a6186c1a69d647e3a48ad3f7f9078c451111e
tree4c88ca07108376d64fa29a43cbdff3e245a2a676
parent2deca7365582b7568dbdd2c3d9eef7ac17d41fd6
Documentation/watchdog: close the fd when cmdline arg given

in the watchdog test code, the ioctl is performed on the watchdog device
and just doing exit(0) so we leak a filedescripor.

Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Documentation/watchdog/src/watchdog-test.c