[Bug 217747] sys/dev/mly/mly.c: PVS-Studio: NULL Pointer Dereference (CWE-476) (1)

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Aug 8 15:56:03 UTC 2017


--- Comment #1 from John Baldwin <jhb at FreeBSD.org> ---
Created attachment 185158
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=185158&action=edit

I would probably either move the check of mc_data into the 'if (mc != NULL)'
block, or do the approach above where we just return immediately if we fail to
get a command and then 'mc' is never NULL when 'out' is jumped to.

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

More information about the freebsd-bugs mailing list