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] [day] [month] [year] [list]
Date:   Sat, 18 Aug 2018 09:26:16 -0700
From:   Joe Perches <joe@...ches.com>
To:     Sergei Shtylyov <sergei.shtylyov@...entembedded.com>,
        zhong jiang <zhongjiang@...wei.com>, davem@...emloft.net
Cc:     benh@...nel.crashing.org, paulus@...ba.org, mpe@...erman.id.au,
        linux-ide@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCHv2] ide: Use NULL to compare with pointer-typed value
 rather than 0

On Sat, 2018-08-18 at 19:21 +0300, Sergei Shtylyov wrote:
> On 08/18/2018 07:15 PM, Joe Perches wrote:
> > > > We should use NULL to compare with pointer-typed value rather than
> > > > 0. The issue is detected with the help of Coccinelle.
> > > 
> > >    Your description stopped to match the patch in v2.
> > >    Actually, this X ==  NULL to !x preference is largely spocific to netdev...
> > > Although, IDE maintainer is the same now person. :-)  
[]
> > > > diff --git a/drivers/ide/pmac.c b/drivers/ide/pmac.c
[]
> > > > @@ -1682,7 +1682,7 @@ static int pmac_ide_init_dma(ide_hwif_t *hwif, const struct ide_port_info *d)
> > > >  	/* We won't need pci_dev if we switch to generic consistent
> > > >  	 * DMA routines ...
> > > >  	 */
> > > > -	if (dev == NULL || pmif->dma_regs == 0)
> > > > +	if (!dev || !pmif->dma_regs)
> > > >  		return -ENODEV;
> > > >  	/*
> > > >  	 * Allocate space for the DBDMA commands.
[]
> > Perhaps discourage trivial changes to this old subsystem.
> > 
> > checkpatch could bleat something if a patch was submitted for ide
> > if the IDE MAINTAINERS entry was marked obsolete.
> 
>    Note that the IDE fixes are still OK...

The checkpatch obsolete message is

<filename> is marked as 'obsolete' in the MAINTAINERS hierarchy.  No unnecessary modifications please.

---
> > diff --git a/MAINTAINERS b/MAINTAINERS
> > index e9336962d0f2..3c4992cf5249 100644
> > --- a/MAINTAINERS
> > +++ b/MAINTAINERS
> > @@ -6933,7 +6933,7 @@ M:	"David S. Miller" <davem@...emloft.net>
> >  L:	linux-ide@...r.kernel.org
> >  Q:	http://patchwork.ozlabs.org/project/linux-ide/list/
> >  T:	git git://git.kernel.org/pub/scm/linux/kernel/git/davem/ide.git
> > -S:	Maintained
> > +S:	Maintained / Obsolete (prefer LIBATA)
> 
>    What about "S: Odd Fixes"? Perhaps it better reflects the reality...

That'd be up to David.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ