ipc, msg: fix message length check for negative values
[platform/adaptation/renesas_rcar/renesas_kernel.git] / include / linux / msg.h
index 391af8d..e21f9d4 100644 (file)
@@ -6,9 +6,9 @@
 
 /* one msg_msg structure for each message */
 struct msg_msg {
-       struct list_head m_list; 
-       long  m_type;          
-       int m_ts;           /* message text size */
+       struct list_head m_list;
+       long m_type;
+       size_t m_ts;            /* message text size */
        struct msg_msgseg* next;
        void *security;
        /* the actual message follows immediately */