Blame SOURCES/0171-xfs-silence-Coverity-overflow-warning.patch

f731ee
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
f731ee
From: Andrei Borzenkov <arvidjaar@gmail.com>
f731ee
Date: Fri, 19 Jun 2015 18:38:25 +0300
f731ee
Subject: [PATCH] xfs: silence Coverity overflow warning
f731ee
f731ee
inode size cannot really overflow integer, but Coverity does not know it.
f731ee
CID: 96602
f731ee
---
f731ee
 grub-core/fs/xfs.c | 2 +-
f731ee
 1 file changed, 1 insertion(+), 1 deletion(-)
f731ee
f731ee
diff --git a/grub-core/fs/xfs.c b/grub-core/fs/xfs.c
f731ee
index f00e43e7dc3..72492915533 100644
f731ee
--- a/grub-core/fs/xfs.c
f731ee
+++ b/grub-core/fs/xfs.c
f731ee
@@ -361,7 +361,7 @@ grub_xfs_inode_offset (struct grub_xfs_data *data,
f731ee
 static inline grub_size_t
f731ee
 grub_xfs_inode_size(struct grub_xfs_data *data)
f731ee
 {
f731ee
-  return 1 << data->sblock.log2_inode;
f731ee
+  return (grub_size_t)1 << data->sblock.log2_inode;
f731ee
 }
f731ee
 
f731ee
 /*