[Bug 207855] usr/src/sys/geom/vinum/geom_vinum_plex.c:173: bad assert ?

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Mar 9 19:30:42 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207855

            Bug ID: 207855
           Summary: usr/src/sys/geom/vinum/geom_vinum_plex.c:173: bad
                    assert ?
           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

usr/src/sys/geom/vinum/geom_vinum_plex.c:173]: (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_plex_offset: sdno < 0"));

but

gv_plex_offset(struct gv_plex *p, off_t boff, off_t bcount, off_t *real_off,
    off_t *real_len, int *sdno, int growing)
{

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list