summaryrefslogtreecommitdiffstats
path: root/drivers/atm
diff options
context:
space:
mode:
authorDavid Woodhouse <David.Woodhouse@intel.com>2009-01-27 21:50:36 +1100
committerDavid Woodhouse <David.Woodhouse@intel.com>2009-01-27 21:50:59 +1100
commitb28a4b9a38b9d75caceb4f554bfdbb7a413b2ad0 (patch)
tree9aebad5e94ba171bd3b7fedfb326c8f0451f5fab /drivers/atm
parent1e615df654ef00a6354f32be08a8fb6a395b2ef1 (diff)
downloadlinux-b28a4b9a38b9d75caceb4f554bfdbb7a413b2ad0.tar.gz
linux-b28a4b9a38b9d75caceb4f554bfdbb7a413b2ad0.tar.bz2
linux-b28a4b9a38b9d75caceb4f554bfdbb7a413b2ad0.zip
solos: Reject non-AAL5 connections.... for now
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/atm')
-rw-r--r--drivers/atm/solos-pci.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/atm/solos-pci.c b/drivers/atm/solos-pci.c
index c289b6251c19..b500f00e184c 100644
--- 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");