patch-2.3.18 linux/net/atm/svc.c

Next file: linux/net/atm/tunable.h
Previous file: linux/net/atm/raw.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.17/linux/net/atm/svc.c linux/net/atm/svc.c
@@ -311,7 +311,7 @@
 {
 	struct atm_vcc *vcc;
 
-	if (level != __SO_LEVEL(optname) || optname != SO_ATMSAP ||
+	if (!__SO_LEVEL_MATCH(optname, level) || optname != SO_ATMSAP ||
 	    optlen != sizeof(struct atm_sap))
 		return atm_setsockopt(sock,level,optname,optval,optlen);
 	vcc = ATM_SD(sock);
@@ -326,7 +326,7 @@
 {
 	int len;
 
-	if (level != __SO_LEVEL(optname) || optname != SO_ATMSAP)
+	if (!__SO_LEVEL_MATCH(optname, level) || optname != SO_ATMSAP)
 		return atm_getsockopt(sock,level,optname,optval,optlen);
 	if (get_user(len,optlen)) return -EFAULT;
 	if (len != sizeof(struct atm_sap)) return -EINVAL;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)