.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | | - * This program is free software; you can redistribute it and/or modify |
---|
3 | | - * it under the terms of the GNU General Public License as published by |
---|
4 | | - * the Free Software Foundation; either version 2 of the License, or |
---|
5 | | - * (at your option) any later version. |
---|
6 | 3 | * |
---|
7 | 4 | * Copyright (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) |
---|
8 | 5 | */ |
---|
.. | .. |
---|
239 | 236 | unsigned char *dptr; |
---|
240 | 237 | int len; |
---|
241 | 238 | |
---|
| 239 | + if (!neigh->dev) |
---|
| 240 | + return; |
---|
| 241 | + |
---|
242 | 242 | len = AX25_BPQ_HEADER_LEN + AX25_MAX_HEADER_LEN + ROSE_MIN_LEN + 3; |
---|
243 | 243 | |
---|
244 | 244 | if ((skb = alloc_skb(len, GFP_ATOMIC)) == NULL) |
---|