Re: add Packet hub driver for Topcliff Platform controller hub

From: Arnd Bergmann
Date: Tue Jan 08 2013 - 05:49:07 EST


On Monday 07 January 2013, Dan Carpenter wrote:
> Sorry my question is about an old patch. Smatch complains because we
> only pass a PAGE_SIZE buffer to sysfs files so the test for
> "if (count > PCH_PHUB_OROM_SIZE) {" makes it think we are overflowing.
> In fact, count is never more than 4096 so there is no overflow, but I
> also think that it means only the first 4096 bytes of the firmware gets
> updated.

I think it works correctly as long as user space keeps writing into the
bin file when getting short write return (4096 bytes).

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