Message ID | 1237325358.27681.339.camel@macbook.infradead.org |
---|---|
State | Accepted, archived |
Delegated to: | David Miller |
Headers | show |
diff --git a/drivers/atm/solos-pci.c b/drivers/atm/solos-pci.c index c289b62..b500f00 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");
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com> --- drivers/atm/solos-pci.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-)