[Bug 207856] usr/src/sys/geom/vinum/geom_vinum_raid5.c: 2 * bad test ?
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Wed Mar 9 19:34:00 UTC 2016
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207856
Bug ID: 207856
Summary: usr/src/sys/geom/vinum/geom_vinum_raid5.c: 2 * bad
test ?
Product: Base System
Version: 11.0-CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: kern
Assignee: freebsd-bugs at FreeBSD.org
Reporter: dcb314 at hotmail.com
1.
usr/src/sys/geom/vinum/geom_vinum_raid5.c:602]: (style) A pointer can not be
negative so it is either pointless or an error to check if it is not.
source code is
KASSERT(psdno >= 0, ("gv_raid5_offset: psdno < 0"));
but
gv_raid5_offset(struct gv_plex *p, off_t boff, off_t bcount, off_t *real_off,
off_t *real_len, int *sdno, int *psdno, int growing)
2.
usr/src/sys/geom/vinum/geom_vinum_raid5.c:610]: (style) A pointer can not be
negative so it is either pointless or an error to check if it is not.
Source code is
KASSERT(sdno >= 0, ("gv_raid5_offset: sdno < 0"));
Duplicate.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list