We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6c2b20 commit e8850cfCopy full SHA for e8850cf
2 files changed
include/ipc.h
@@ -23,7 +23,7 @@
23
struct ksmbd_ipc_msg {
24
unsigned int type;
25
unsigned int sz;
26
- unsigned char ____payload[0];
+ unsigned char ____payload[];
27
};
28
29
#define KSMBD_IPC_MSG_PAYLOAD(m) \
mountd/ipc.c
@@ -29,7 +29,7 @@ static struct nl_sock *sk;
struct ksmbd_ipc_msg *ipc_msg_alloc(size_t sz)
30
{
31
struct ksmbd_ipc_msg *msg;
32
- size_t msg_sz = sz + sizeof(struct ksmbd_ipc_msg) + 1;
+ size_t msg_sz = sz + sizeof(struct ksmbd_ipc_msg);
33
34
if (msg_sz > KSMBD_IPC_MAX_MESSAGE_SIZE) {
35
pr_err("IPC message is too large: %zu\n", msg_sz);
0 commit comments