mirror of
https://github.com/torvalds/linux.git
synced 2026-11-24 23:47:06 +00:00
The sg length could be more than remaining data on it. So check the length requirement against the minimum between those two values. Signed-off-by: Corentin Labbe <[email protected]> Signed-off-by: Herbert Xu <[email protected]>