| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * |
|---|
| 3 | 4 | * Author Karsten Keil <kkeil@novell.com> |
|---|
| 4 | 5 | * |
|---|
| 5 | 6 | * Copyright 2008 by Karsten Keil <kkeil@novell.com> |
|---|
| 6 | | - * |
|---|
| 7 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 8 | | - * it under the terms of the GNU General Public License version 2 as |
|---|
| 9 | | - * published by the Free Software Foundation. |
|---|
| 10 | | - * |
|---|
| 11 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 12 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 13 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 14 | | - * GNU General Public License for more details. |
|---|
| 15 | | - * |
|---|
| 16 | 7 | */ |
|---|
| 17 | 8 | #include "layer2.h" |
|---|
| 18 | 9 | #include <linux/random.h> |
|---|
| .. | .. |
|---|
| 1337 | 1328 | } |
|---|
| 1338 | 1329 | out: |
|---|
| 1339 | 1330 | read_unlock_irqrestore(&mgr->lock, flags); |
|---|
| 1340 | | - if (cskb) |
|---|
| 1341 | | - dev_kfree_skb(cskb); |
|---|
| 1342 | | - if (skb) |
|---|
| 1343 | | - dev_kfree_skb(skb); |
|---|
| 1331 | + dev_kfree_skb(cskb); |
|---|
| 1332 | + dev_kfree_skb(skb); |
|---|
| 1344 | 1333 | return 0; |
|---|
| 1345 | 1334 | } |
|---|
| 1346 | 1335 | |
|---|