lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1491195442.27353.54.camel@perches.com>
Date:   Sun, 02 Apr 2017 21:57:22 -0700
From:   Joe Perches <joe@...ches.com>
To:     Prasant Jalan <prasant.jalan@...il.com>, Larry.Finger@...inger.net
Cc:     Florian Schilhabel <florian.c.schilhabel@...glemail.com>,
        Greg KH <gregkh@...uxfoundation.org>, geliangtang@....com,
        raphael.beamonte@...il.com, vijaikumar.kanagarajan@...il.com,
        Souptick Joarder <jrdr.linux@...il.com>,
        driverdevel <devel@...verdev.osuosl.org>,
        LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] staging: rtl8712: fixed multiple line derefence issue

On Mon, 2017-04-03 at 09:43 +0530, Prasant Jalan wrote:
> On Thu, Mar 30, 2017 at 12:03 AM, Prasant Jalan <prasant.jalan@...il.com> wrote:
> > Checkpatch emits WARNING: Avoid multiple line dereference.
> > 
> > Trivial indentation improvement helps fix the checkpatch warning.
[]
> > diff --git a/drivers/staging/rtl8712/rtl871x_xmit.c b/drivers/staging/rtl8712/rtl871x_xmit.c
[]
> > @@ -416,15 +417,14 @@ static sint xmitframe_addmic(struct _adapter *padapter,
> >                                                            &pframe[10], 6);
> >                         }
> >                         if (pqospriv->qos_option == 1)
> > -                                       priority[0] = (u8)pxmitframe->
> > -                                                     attrib.priority;
> > +                               priority[0] = (u8)pxmitframe->attrib.priority;
> >                         r8712_secmicappend(&micdata, &priority[0], 4);
> >                         payload = pframe;
> >                         for (curfragnum = 0; curfragnum < pattrib->nr_frags;
> >                              curfragnum++) {
> >                                 payload = (u8 *)RND4((addr_t)(payload));
> > -                               payload = payload + pattrib->
> > -                                         hdrlen + pattrib->iv_len;
> > +                               payload = payload + pattrib->hdrlen +
> > +                                         pattrib->iv_len;

+= would be shorter

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ