]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - net/netrom/af_netrom.c
netrom: fix invalid use of sizeof in nr_recvmsg()
[karo-tx-linux.git] / net / netrom / af_netrom.c
index aca28b9d2adad820a58464022b56c8979329c8d5..3df7c5a4ac8ee1c955777a064cf879e57f489347 100644 (file)
@@ -1178,7 +1178,7 @@ static int nr_recvmsg(struct kiocb *iocb, struct socket *sock,
        }
 
        if (sax != NULL) {
-               memset(sax, 0, sizeof(sax));
+               memset(sax, 0, sizeof(*sax));
                sax->sax25_family = AF_NETROM;
                skb_copy_from_linear_data_offset(skb, 7, sax->sax25_call.ax25_call,
                              AX25_ADDR_LEN);