diff --git a/fs/ntfs3/super.c b/fs/ntfs3/super.c index 569f38a2a51fc0ac223594d18d9bcb7670aa2f65..ff70e2a5f3acb3bf67f958206d241acd00a8dfb1 100644 --- a/fs/ntfs3/super.c +++ b/fs/ntfs3/super.c @@ -697,7 +697,7 @@ static u32 true_sectors_per_clst(const struct NTFS_BOOT *boot) if (boot->sectors_per_clusters <= 0x80) return boot->sectors_per_clusters; if (boot->sectors_per_clusters >= 0xf4) /* limit shift to 2MB max */ - return 1U << (0 - boot->sectors_per_clusters); + return 1U << -(s8)boot->sectors_per_clusters; return -EINVAL; }