]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
sock_diag: off by one checks
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 7 Dec 2011 20:49:38 +0000 (20:49 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Dec 2011 00:58:35 +0000 (19:58 -0500)
commit6f8e4ad0eff5117ba895122674670f9c63b6e8d8
treeb84f9c6566a1d6b178b8ca2d021919b5c3499367
parent865d9f9f748fdc1943679ea65d9ee1dc55e4a6ae
sock_diag: off by one checks

These tests are off by one because sock_diag_handlers[] only has AF_MAX
elements.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/sock_diag.c