diff options
Diffstat (limited to 'drivers/atm/solos-pci.c')
-rw-r--r-- | drivers/atm/solos-pci.c | 6 |
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) | |||
732 | struct sk_buff *skb; | 732 | struct sk_buff *skb; |
733 | struct pkt_hdr *header; | 733 | struct pkt_hdr *header; |
734 | 734 | ||
735 | if (vcc->qos.aal != ATM_AAL5) { | ||
736 | dev_warn(&card->dev->dev, "Unsupported ATM type %d\n", | ||
737 | vcc->qos.aal); | ||
738 | return -EINVAL; | ||
739 | } | ||
740 | |||
735 | skb = alloc_skb(sizeof(*header), GFP_ATOMIC); | 741 | skb = alloc_skb(sizeof(*header), GFP_ATOMIC); |
736 | if (!skb && net_ratelimit()) { | 742 | if (!skb && net_ratelimit()) { |
737 | dev_warn(&card->dev->dev, "Failed to allocate sk_buff in popen()\n"); | 743 | dev_warn(&card->dev->dev, "Failed to allocate sk_buff in popen()\n"); |