diff options
author | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-30 19:16:45 -0400 |
---|---|---|
committer | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-30 19:16:45 -0400 |
commit | ada47b5fe13d89735805b566185f4885f5a3f750 (patch) | |
tree | 644b88f8a71896307d71438e9b3af49126ffb22b /drivers/net/wan/hdlc_fr.c | |
parent | 43e98717ad40a4ae64545b5ba047c7b86aa44f4f (diff) | |
parent | 3280f21d43ee541f97f8cda5792150d2dbec20d5 (diff) |
Merge branch 'wip-2.6.34' into old-private-masterarchived-private-master
Diffstat (limited to 'drivers/net/wan/hdlc_fr.c')
-rw-r--r-- | drivers/net/wan/hdlc_fr.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wan/hdlc_fr.c b/drivers/net/wan/hdlc_fr.c index 840cff72a0f1..0e52993e2079 100644 --- a/drivers/net/wan/hdlc_fr.c +++ b/drivers/net/wan/hdlc_fr.c | |||
@@ -182,7 +182,7 @@ static inline pvc_device* find_pvc(hdlc_device *hdlc, u16 dlci) | |||
182 | if (pvc->dlci == dlci) | 182 | if (pvc->dlci == dlci) |
183 | return pvc; | 183 | return pvc; |
184 | if (pvc->dlci > dlci) | 184 | if (pvc->dlci > dlci) |
185 | return NULL; /* the listed is sorted */ | 185 | return NULL; /* the list is sorted */ |
186 | pvc = pvc->next; | 186 | pvc = pvc->next; |
187 | } | 187 | } |
188 | 188 | ||
@@ -1214,10 +1214,10 @@ static int fr_ioctl(struct net_device *dev, struct ifreq *ifr) | |||
1214 | return 0; | 1214 | return 0; |
1215 | 1215 | ||
1216 | case IF_PROTO_FR: | 1216 | case IF_PROTO_FR: |
1217 | if(!capable(CAP_NET_ADMIN)) | 1217 | if (!capable(CAP_NET_ADMIN)) |
1218 | return -EPERM; | 1218 | return -EPERM; |
1219 | 1219 | ||
1220 | if(dev->flags & IFF_UP) | 1220 | if (dev->flags & IFF_UP) |
1221 | return -EBUSY; | 1221 | return -EBUSY; |
1222 | 1222 | ||
1223 | if (copy_from_user(&new_settings, fr_s, size)) | 1223 | if (copy_from_user(&new_settings, fr_s, size)) |
@@ -1263,7 +1263,7 @@ static int fr_ioctl(struct net_device *dev, struct ifreq *ifr) | |||
1263 | if (dev_to_hdlc(dev)->proto != &proto) /* Different proto */ | 1263 | if (dev_to_hdlc(dev)->proto != &proto) /* Different proto */ |
1264 | return -EINVAL; | 1264 | return -EINVAL; |
1265 | 1265 | ||
1266 | if(!capable(CAP_NET_ADMIN)) | 1266 | if (!capable(CAP_NET_ADMIN)) |
1267 | return -EPERM; | 1267 | return -EPERM; |
1268 | 1268 | ||
1269 | if (copy_from_user(&pvc, ifr->ifr_settings.ifs_ifsu.fr_pvc, | 1269 | if (copy_from_user(&pvc, ifr->ifr_settings.ifs_ifsu.fr_pvc, |