On 18.04.14 20:53:23, Myron Stowe wrote:
> From: Suravee Suthikulpanit <suravee.suthikulpa...@amd.com>

> -             start = reg & 0xffffff00; /* 39:16 on 31:8*/
> -             start <<= 8;
> -             reg = read_pci_config(bus, slot, 1, 0x84 + (i << 3));
> +             start = (reg & 0xffffff00UL) << 8;      /* 39:16 on 31:8 */

I think this is not save anymore with respect to u32/u64 casting. The
original was.

-Robert
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to