]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
liveupdate: change file_set->count type to u64 for type safety
authorPasha Tatashin <pasha.tatashin@soleen.com>
Wed, 3 Jun 2026 15:43:50 +0000 (15:43 +0000)
committerMike Rapoport (Microsoft) <rppt@kernel.org>
Wed, 3 Jun 2026 18:15:45 +0000 (21:15 +0300)
This improves type safety and aligns the in-memory file_set->count with
the serialized count type. It avoids potential truncation or sign
conversion mismatch issues.

Reviewed-by: Pratyush Yadav (Google) <pratyush@kernel.org>
Acked-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
Signed-off-by: Pasha Tatashin <pasha.tatashin@soleen.com>
Link: https://patch.msgid.link/20260603154402.468928-2-pasha.tatashin@soleen.com
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
kernel/liveupdate/luo_internal.h

index dd53d4a7277e01be3e1518b530df793212f81530..ae58206f14acf1dd8d2b61d153a6b8d0ced28bc7 100644 (file)
@@ -52,7 +52,7 @@ static inline int luo_ucmd_respond(struct luo_ucmd *ucmd,
 struct luo_file_set {
        struct list_head files_list;
        struct luo_file_ser *files;
-       long count;
+       u64 count;
 };
 
 /**