Subject: [PATCH]: Fix off-by-one in max protocol-type check

From: Patrick McHardy <[email-masked]>
Date: Fri, 28 May 2004 12:53:16 +0200

This patch fixes an off-by-one in inet_register_protosw and
inet6_register_protosw. inetsw is an array of size SOCK_MAX,
the check allows access to index SOCK_MAX. Patch applies
to 2.4 and 2.6.

Regards
Patrick