[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20090405214619.12611ef4.akpm@linux-foundation.org>
Date: Sun, 5 Apr 2009 21:46:19 -0700
From: Andrew Morton <akpm@...ux-foundation.org>
To: "Jeff Haran" <jharan@...cade.COM>
Cc: <linux-kernel@...r.kernel.org>, Doug Thompson <norsk5@...oo.com>
Subject: Re: bug in drivers/edac/edac_core.h pci_write_bits32()
(cc maintainer)
On Thu, 26 Mar 2009 16:54:01 -0700 "Jeff Haran" <jharan@...cade.COM> wrote:
> 2.6.29 and previous versions seem to contain this bug which I found just
> eyeballing the code:
>
> static inline void pci_write_bits32(struct pci_dev *pdev, int offset,
> u32 value, u32 mask)
> {
> if (mask != 0xffff) {
> u32 buf;
>
> pci_read_config_dword(pdev, offset, &buf);
> value &= mask;
> buf &= ~mask;
> value |= buf;
> }
>
> pci_write_config_dword(pdev, offset, value);
> }
>
> I'm pretty sure that "if" statement should be:
>
> if (mask != 0xffffffff) {
>
> Please copy my email address in any response as I do not subscribe.
>
> Thanks,
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists