OSDN Git Service

Try to convince covscan that sysfs_read_file() doesn't leak on error.
authorPeter Jones <pjones@redhat.com>
Wed, 13 Jun 2018 13:15:17 +0000 (09:15 -0400)
committerPeter Jones <pjones@redhat.com>
Thu, 14 Jun 2018 16:00:04 +0000 (12:00 -0400)
commit5e2174acaf1a51ead0a079776229e0df89c7fd81
treefdf617b25cf4b97b9c5f3056b37a90c4f628d00a
parentbd8fc0ebe86da82468b40a4998c3000819e73afe
Try to convince covscan that sysfs_read_file() doesn't leak on error.

Basically, covscan gets confused about some of our return paths and
doesn't  think the error condition correlates with not having allocated
(or having freed) the ram we're using to pass the file data back.

Signed-off-by: Peter Jones <pjones@redhat.com>
src/linux.h
src/util.h