]> sourceware.org Git - lvm2.git/commit
dmsetup: check timerfd reads for valid byte count (Coverity)
authorBryn M. Reeves <bmr@redhat.com>
Mon, 17 Aug 2015 18:26:44 +0000 (19:26 +0100)
committerBryn M. Reeves <bmr@redhat.com>
Mon, 17 Aug 2015 18:28:53 +0000 (19:28 +0100)
commit12acf852c5661b771d8800a60dcf1ac799466289
tree34ceb3e5a657379c8b696596dd0f78b9a9fa4d39
parent074b5de7715b76ad63147f84edb5d9e1a05870e9
dmsetup: check timerfd reads for valid byte count (Coverity)

The timerfd guarantees that it will return 8 bytes when a read(2)
is issued (a uint64_t giving the number of timer events during the
call). Check that it does so and log a non-fatal error if the byte
count is not 8.
tools/dmsetup.c
This page took 0.037821 seconds and 5 git commands to generate.