The patch titled drivers-char-add-packet-hub-driver-for-the-topcliff-pch-update has been added to the -mm tree. Its filename is drivers-char-add-packet-hub-driver-for-the-topcliff-pch-update.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: drivers-char-add-packet-hub-driver-for-the-topcliff-pch-update From: Masayuki Ohtak <masa-korg@xxxxxxxxxxxxxxx> Signed-off-by: Masayuki Ohtake <masa-korg@xxxxxxxxxxxxxxx> Acked-by: Arnd Bergmann <arnd@xxxxxxxx> Cc: Greg KH <greg@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/char/pch_phub/pch_phub.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff -puN drivers/char/pch_phub/pch_phub.c~drivers-char-add-packet-hub-driver-for-the-topcliff-pch-update drivers/char/pch_phub/pch_phub.c --- a/drivers/char/pch_phub/pch_phub.c~drivers-char-add-packet-hub-driver-for-the-topcliff-pch-update +++ a/drivers/char/pch_phub/pch_phub.c @@ -470,6 +470,10 @@ static ssize_t pch_phub_write(struct fil } for (addr_offset = 0; addr_offset < size; addr_offset++) { + if (PCH_PHUB_OROM_SIZE < pos + addr_offset) { + *ppos += addr_offset; + goto return_ok; + } ret_value1 = get_user(data, &buf[addr_offset]); if (ret_value1) { err = -EFAULT; @@ -482,12 +486,6 @@ static ssize_t pch_phub_write(struct fil err = ret_value2; goto return_err; } - - if (PCH_PHUB_OROM_SIZE < pos + addr_offset) { - *ppos += addr_offset; - goto return_ok; - } - } *ppos += addr_offset; _ Patches currently in -mm which might be from masa-korg@xxxxxxxxxxxxxxx are drivers-char-add-packet-hub-driver-for-the-topcliff-pch.patch drivers-char-add-packet-hub-driver-for-the-topcliff-pch-update.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html