projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e615df
)
solos: Reject non-AAL5 connections.... for now
author
David Woodhouse
<David.Woodhouse@intel.com>
Tue, 27 Jan 2009 10:50:36 +0000
(21:50 +1100)
committer
David Woodhouse
<David.Woodhouse@intel.com>
Tue, 27 Jan 2009 10:50:59 +0000
(21:50 +1100)
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/atm/solos-pci.c
patch
|
blob
|
history
diff --git
a/drivers/atm/solos-pci.c
b/drivers/atm/solos-pci.c
index c289b6251c19e75400f01d0450c5d6a516fce2e2..b500f00e184cb4cd51ac3282a102de846553dcc9 100644
(file)
--- a/
drivers/atm/solos-pci.c
+++ b/
drivers/atm/solos-pci.c
@@
-732,6
+732,12
@@
static int popen(struct atm_vcc *vcc)
struct sk_buff *skb;
struct pkt_hdr *header;
+ if (vcc->qos.aal != ATM_AAL5) {
+ dev_warn(&card->dev->dev, "Unsupported ATM type %d\n",
+ vcc->qos.aal);
+ return -EINVAL;
+ }
+
skb = alloc_skb(sizeof(*header), GFP_ATOMIC);
if (!skb && net_ratelimit()) {
dev_warn(&card->dev->dev, "Failed to allocate sk_buff in popen()\n");