Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 05 May 2016 20:22:28 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 209305] Code to malloc should use struct <NAME> instead of pointer as per style guidelines
Message-ID:  <bug-209305-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help

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@FreeBSD.org
          Reporter: sd@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.


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-209305-8>