Date: Tue, 11 Mar 2014 17:19:38 -0700 From: Conrad Meyer <cemeyer@uw.edu> To: freebsd-hackers@freebsd.org Cc: Conrad Meyer <conrad.meyer@isilon.com>, Jeffrey Roberson <jeff@freebsd.org> Subject: [PATCH 0/5] Fix several minor Clang static analysis warnings Message-ID: <1394583583-19023-1-git-send-email-conrad.meyer@isilon.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1394583583-19023-1-git-send-email-conrad.meyer>