[PATCH 0/5] Fix several minor Clang static analysis warnings

Conrad Meyer cemeyer at uw.edu
Wed Mar 12 00:20:02 UTC 2014


We ran Clang on static builds locally against OneFS at Isilon and found several
issues present in CURRENT. They're mostly trivial. I'm unfamiliar with the
FreeBSD patch submission process, but here's my "best effort" attempt (given
the Linux model).

Each patch should be tiny and fix one thing. Hopefully this looks reasonable.

Thanks.

Conrad Meyer (5):
  vm/device_pager.c: dev_pager_alloc: 'size' must be non-zero
  kern/vfs_syscalls.c: kern_readlinkat: Don't set return value to
    uninitialized value
  hwpmc_piv.c: pmc_p4_initialize: Use correct type for sizeof() in
    malloc()
  dev/cpuctl: cpuctl_modevent: Use correct type for sizeof() in malloc()
  kern/kern_linker.c: Use correct type for sizeof() in malloc()

 sys/dev/cpuctl/cpuctl.c   | 4 ++--
 sys/dev/hwpmc/hwpmc_piv.c | 3 +--
 sys/kern/kern_linker.c    | 7 +++----
 sys/kern/vfs_syscalls.c   | 2 +-
 sys/vm/device_pager.c     | 6 ++++++
 5 files changed, 13 insertions(+), 9 deletions(-)

-- 
1.8.5.3



More information about the freebsd-hackers mailing list