[Bug 209305] Code to malloc should use struct <NAME> instead of pointer as per style guidelines
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu May 5 20:22:28 UTC 2016
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=209305
Bug ID: 209305
Summary: Code to malloc should use struct <NAME> instead of
pointer as per style guidelines
Product: Base System
Version: 11.0-CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Many People
Priority: ---
Component: kern
Assignee: freebsd-bugs at FreeBSD.org
Reporter: sd at beastie.io
Created attachment 170020
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=170020&action=edit
Patch for malloc using struct
In efipart.c, the code to malloc the phys dev info (struct pdinfo) is allocated
via:
malloc(nin * sizeof(*pdinfo));
It should be
malloc(nin * sizeof(struct pdinfo));
according to style(9) and in general code guidelines in FreeBSD
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list