mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
Since mpi_write_to_sgl and mpi_read_buffer explicitly left-align the integers being written it makes no sense to require a buffer big enough for the number + the leading zero bytes which are not written. The error returned also doesn't convey any information. So instead require only the size needed and return -EOVERFLOW to signal when buffer too short. Signed-off-by: Andrew Zaborowski <[email protected]> Signed-off-by: Herbert Xu <[email protected]>