| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * CAN driver for EMS Dr. Thomas Wuensche CPC-USB/ARM7 |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (C) 2004-2009 EMS Dr. Thomas Wuensche |
|---|
| 5 | | - * |
|---|
| 6 | | - * This program is free software; you can redistribute it and/or modify it |
|---|
| 7 | | - * under the terms of the GNU General Public License as published |
|---|
| 8 | | - * by the Free Software Foundation; version 2 of the License. |
|---|
| 9 | | - * |
|---|
| 10 | | - * This program is distributed in the hope that it will be useful, but |
|---|
| 11 | | - * WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 12 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|---|
| 13 | | - * General Public License for more details. |
|---|
| 14 | | - * |
|---|
| 15 | | - * You should have received a copy of the GNU General Public License along |
|---|
| 16 | | - * with this program; if not, write to the Free Software Foundation, Inc., |
|---|
| 17 | | - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
|---|
| 18 | 6 | */ |
|---|
| 19 | 7 | #include <linux/signal.h> |
|---|
| 20 | 8 | #include <linux/slab.h> |
|---|
| .. | .. |
|---|
| 206 | 194 | __le32 ts_sec; /* timestamp in seconds */ |
|---|
| 207 | 195 | __le32 ts_nsec; /* timestamp in nano seconds */ |
|---|
| 208 | 196 | |
|---|
| 209 | | - union { |
|---|
| 197 | + union __packed { |
|---|
| 210 | 198 | u8 generic[64]; |
|---|
| 211 | 199 | struct cpc_can_msg can_msg; |
|---|
| 212 | 200 | struct cpc_can_params can_params; |
|---|
| .. | .. |
|---|
| 835 | 823 | |
|---|
| 836 | 824 | usb_unanchor_urb(urb); |
|---|
| 837 | 825 | usb_free_coherent(dev->udev, size, buf, urb->transfer_dma); |
|---|
| 838 | | - dev_kfree_skb(skb); |
|---|
| 839 | 826 | |
|---|
| 840 | 827 | atomic_dec(&dev->active_tx_urbs); |
|---|
| 841 | 828 | |
|---|