Cast signed to unsigned explicitly 36/270436/2
authorMichal Bloch <m.bloch@samsung.com>
Wed, 2 Feb 2022 18:57:42 +0000 (19:57 +0100)
committerHyotaek Shim <hyotaek.shim@samsung.com>
Thu, 3 Feb 2022 11:47:09 +0000 (11:47 +0000)
Change-Id: I9500955d04398bc59206558d50f2917af44f783a
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
kernel/kdbus/connection.c

index b472e36..4677c5d 100644 (file)
@@ -2201,7 +2201,7 @@ int kdbus_cmd_recv(struct kdbus_conn *conn, void __user *argp)
                mutex_unlock(&conn->lock);
        }
 
-       cmd->dropped_msgs = atomic_xchg(&conn->lost_count, 0);
+       cmd->dropped_msgs = (__u64) atomic_xchg(&conn->lost_count, 0);
        if (cmd->dropped_msgs > 0)
                cmd->return_flags |= KDBUS_RECV_RETURN_DROPPED_MSGS;