Re: [PATCH] sparc64: don't treat 64-bit syscall return codes as 32-bit

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Dave Kleikamp <dave.kleikamp@xxxxxxxxxx>
Date: Fri, 14 Mar 2014 10:42:01 -0500

> When checking a system call return code for an error,
> linux_sparc_syscall was sign-extending the lower 32-bit value and
> comparing it to -ERESTART_RESTARTBLOCK. lseek can return valid return
> codes whose lower 32-bits alone would indicate a failure (such as 4G-1).
> Use the whole 64-bit value to check for errors. Only the 32-bit path
> should sign extend the lower 32-bit value.
> 
> Signed-off-by: Dave Kleikamp <dave.kleikamp@xxxxxxxxxx>
> Acked-by: Bob Picco <bob.picco@xxxxxxxxxx>
> Acked-by: Allen Pais <allen.pais@xxxxxxxxxx>

Looks good, applied and queued up for -stable, thanks!
--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Development]     [DCCP]     [Linux ARM Development]     [Linux]     [Photo]     [Yosemite Help]     [Linux ARM Kernel]     [Linux SCSI]     [Linux x86_64]     [Linux Hams]

  Powered by Linux