2.4.8 breaks ATM

Renaud =?ISO-8859-15?q?Gu=E9rin?= (rguerin@free.fr)
Sun, 12 Aug 2001 14:43:47 +0200


The following part of the 2.4.8 patch seems to be a typo (">>" looks more
logical than ">" if vci_bit is a bitfield), and broke ATM for me:

--- v2.4.7/linux/net/atm/common.c Tue Jul 3 17:08:22 2001
+++ linux/net/atm/common.c Sun Aug 5 13:12:41 2001
@@ -210,7 +210,7 @@

if ((vpi != ATM_VPI_UNSPEC && vpi != ATM_VPI_ANY &&
vpi >> dev->ci_range.vpi_bits) || (vci != ATM_VCI_UNSPEC &&
- vci != ATM_VCI_ANY && vci >> dev->ci_range.vci_bits))
+ vci != ATM_VCI_ANY && vci > dev->ci_range.vci_bits))
return -EINVAL;
if (vci > 0 && vci < ATM_NOT_RSV_VCI &&
!capable(CAP_NET_BIND_SERVICE))
return -EPERM;

I simply reverted the patch and it works again.

-- 
-----------------------------------------------
Renaud Guerin
rguerin@free.fr - guerinre@utt.fr
Génie des Systèmes d'Information et de Décision
Université de Technologie de Troyes (France)
-----------------------------------------------
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/