diff --git a/fs/udf/namei.c b/fs/udf/namei.c
index 35e5bebe4fab4bd5fe796615675db0131e358d67..4bf83d570456bf221e311ec0b54d9a4a9c984c1c 100644
--- a/fs/udf/namei.c
+++ b/fs/udf/namei.c
@@ -1195,7 +1195,7 @@ static int udf_rename(struct inode *old_dir, struct dentry *old_dentry,
 		}
 	}
 	if (S_ISDIR(old_inode->i_mode)) {
-		uint32_t offset = udf_ext0_offset(old_inode);
+		int offset = udf_ext0_offset(old_inode);
 
 		if (new_inode) {
 			retval = -ENOTEMPTY;