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-next>] [day] [month] [year] [list]
Message-ID: <20130905144353.GB15894@redhat.com>
Date:	Thu, 5 Sep 2013 10:43:53 -0400
From:	Dave Jones <davej@...hat.com>
To:	Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Cc:	Aravind.Gopalakrishnan@....com
Subject: Re: amd64_edac: Add ECC decoding support for newer F15h models

On Wed, Sep 04, 2013 at 06:52:24PM +0000, Linux Kernel wrote:
 > Gitweb:     http://git.kernel.org/linus/;a=commit;h=18b94f66f9537003cee30d475d79a57c58f1e1d8
 > Commit:     18b94f66f9537003cee30d475d79a57c58f1e1d8
 > Parent:     7d64ac6422092adbbdaa279ab32f9d4c90a84558
 > Author:     Aravind Gopalakrishnan <Aravind.Gopalakrishnan@....com>
 > AuthorDate: Fri Aug 9 11:54:49 2013 -0500
 > Committer:  Borislav Petkov <bp@...e.de>
 > CommitDate: Mon Aug 12 16:00:10 2013 +0200
 > 
 >     amd64_edac: Add ECC decoding support for newer F15h models

 > +static int f15_m30h_match_to_this_node(struct amd64_pvt *pvt, unsigned range,
 > +					u64 sys_addr, int *chan_sel)
 > +{
 > +	...
 > +	u8 channel, alias_channel, leg_mmio_hole, dct_sel, dct_offset_en;
        ^^^^^^^^^^

 > +
 > +  ....
 > +
 > +	channel = f15_m30h_determine_channel(pvt, sys_addr, intlv_en,
 > +					     num_dcts_intlv, dct_sel);
 > +
 > +	/* Verify we stay within the MAX number of channels allowed */
 > +	if (channel > 4 || channel < 0)
 > +		return -EINVAL;
 
Channel will never be < 0, as it's unsigned.

	Dave

--
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ