summaryrefslogtreecommitdiff
path: root/arch/arm64/mm
diff options
context:
space:
mode:
authorAndrzej Zaborowski <andrew.zaborowski@intel.com>2015-11-13 11:01:32 (GMT)
committerHerbert Xu <herbert@gondor.apana.org.au>2015-11-17 14:00:39 (GMT)
commit9cbe21d8f89dfa851e593ca12725e910ec60c10c (patch)
treee7485dcbc3244dd2db888b01773d29fd3bbf026f /arch/arm64/mm
parent7aff7d0abc83b0991e83af3c43f0d0df47e7c3bf (diff)
downloadlinux-9cbe21d8f89dfa851e593ca12725e910ec60c10c.tar.xz
lib/mpi: only require buffers as big as needed for the integer
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 <andrew.zaborowski@intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'arch/arm64/mm')
0 files changed, 0 insertions, 0 deletions