exfat: fix range validation error in alloc and free cluster
authorhyeongseok.kim <hyeongseok@gmail.com>
Thu, 4 Jun 2020 04:54:28 +0000 (13:54 +0900)
committerNamjae Jeon <namjae.jeon@samsung.com>
Tue, 9 Jun 2020 07:50:12 +0000 (16:50 +0900)
commita949824f01f3b39f737d77aed6cba47aced09319
tree6a4a0a18ef24d58c8488e50c633df8dbbabf3078
parent29bbb14bfc80dd760b07d2be0a27e610562982e3
exfat: fix range validation error in alloc and free cluster

There is check error in range condition that can never be entered
even with invalid input.
Replace incorrent checking code with already existing valid checker.

Signed-off-by: hyeongseok.kim <hyeongseok@gmail.com>
Acked-by: Sungjong Seo <sj1557.seo@samsung.com>
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
fs/exfat/fatent.c