Commit cfb2fd97 authored by Sungjong Seo's avatar Sungjong Seo Committed by Lee Jones
Browse files

UPSTREAM: exfat: fix potential wrong error return from get_block



If there is no error, get_block() should return 0. However, when bh_read()
returns 1, get_block() also returns 1 in the same manner.

Let's set err to 0, if there is no error from bh_read()

Fixes: 11a347fb ("exfat: change to get file size from DataLength")
Cc: stable@vger.kernel.org
Signed-off-by: default avatarSungjong Seo <sj1557.seo@samsung.com>
Reviewed-by: default avatarYuezhang Mo <Yuezhang.Mo@sony.com>
Signed-off-by: default avatarNamjae Jeon <linkinjeon@kernel.org>

(cherry-picked from commit 59c30e31)
Change-Id: I808c5879bb75c71652a8a635339c3119d614dd88
Bug: 412215407
Signed-off-by: default avatarPaul Lawrence <paullawrence@google.com>
(cherry picked from commit b41dff1d)
Signed-off-by: default avatarLee Jones <joneslee@google.com>
parent 692505b9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment