diff --git a/debian/patches/bugfix/all/hfsplus-limit-to-2tb.patch b/debian/patches/bugfix/all/hfsplus-limit-to-2tb.patch index 325a420f0..dfa3d98cb 100644 --- a/debian/patches/bugfix/all/hfsplus-limit-to-2tb.patch +++ b/debian/patches/bugfix/all/hfsplus-limit-to-2tb.patch @@ -14,8 +14,7 @@ I am not confident that I can find and fix all cases where a sector number may be truncated. For now, avoid data loss by refusing to mount HFS+ volumes with more than 2^32 sectors (2TB). -Signed-off-by: Ben Hutchings -Cc: stable@kernel.org +[plus fix by Andrew Morton ] --- --- a/fs/hfsplus/wrapper.c +++ b/fs/hfsplus/wrapper.c @@ -23,7 +22,7 @@ Cc: stable@kernel.org if (hfsplus_get_last_session(sb, &part_start, &part_size)) return -EINVAL; -+ if (part_start + part_size > 0x100000000) { ++ if ((u64)part_start + part_size > 0x100000000ULL) { + pr_err("hfs: volumes larger than 2TB are not supported yet\n"); + return -EINVAL; + }