solos: Reject non-AAL5 connections.... for now
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
This commit is contained in:
parent
1e615df654
commit
b28a4b9a38
1 changed files with 6 additions and 0 deletions
|
@ -732,6 +732,12 @@ static int popen(struct atm_vcc *vcc)
|
||||||
struct sk_buff *skb;
|
struct sk_buff *skb;
|
||||||
struct pkt_hdr *header;
|
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);
|
skb = alloc_skb(sizeof(*header), GFP_ATOMIC);
|
||||||
if (!skb && net_ratelimit()) {
|
if (!skb && net_ratelimit()) {
|
||||||
dev_warn(&card->dev->dev, "Failed to allocate sk_buff in popen()\n");
|
dev_warn(&card->dev->dev, "Failed to allocate sk_buff in popen()\n");
|
||||||
|
|
Loading…
Reference in a new issue