.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* DVB USB compliant linux driver for MSI Mega Sky 580 DVB-T USB2.0 receiver |
---|
2 | 3 | * |
---|
3 | 4 | * Copyright (C) 2006 Aapo Tahkola (aet@rasterburn.org) |
---|
4 | 5 | * |
---|
5 | | - * This program is free software; you can redistribute it and/or modify it |
---|
6 | | - * under the terms of the GNU General Public License as published by the |
---|
7 | | - * Free Software Foundation, version 2. |
---|
8 | | - * |
---|
9 | | - * see Documentation/media/dvb-drivers/dvb-usb.rst for more information |
---|
| 6 | + * see Documentation/driver-api/media/drivers/dvb-usb.rst for more information |
---|
10 | 7 | */ |
---|
11 | 8 | |
---|
12 | 9 | #include "m920x.h" |
---|
.. | .. |
---|
280 | 277 | char *read = kmalloc(1, GFP_KERNEL); |
---|
281 | 278 | if (!read) { |
---|
282 | 279 | ret = -ENOMEM; |
---|
283 | | - kfree(read); |
---|
284 | 280 | goto unlock; |
---|
285 | 281 | } |
---|
286 | 282 | |
---|
.. | .. |
---|
291 | 287 | |
---|
292 | 288 | if ((ret = m920x_read(d->udev, M9206_I2C, 0x0, |
---|
293 | 289 | 0x20 | stop, |
---|
294 | | - read, 1)) != 0) |
---|
| 290 | + read, 1)) != 0) { |
---|
| 291 | + kfree(read); |
---|
295 | 292 | goto unlock; |
---|
| 293 | + } |
---|
296 | 294 | msg[i].buf[j] = read[0]; |
---|
297 | 295 | } |
---|
298 | 296 | |
---|
.. | .. |
---|
472 | 470 | |
---|
473 | 471 | /* Callbacks for DVB USB */ |
---|
474 | 472 | static int m920x_identify_state(struct usb_device *udev, |
---|
475 | | - struct dvb_usb_device_properties *props, |
---|
476 | | - struct dvb_usb_device_description **desc, |
---|
| 473 | + const struct dvb_usb_device_properties *props, |
---|
| 474 | + const struct dvb_usb_device_description **desc, |
---|
477 | 475 | int *cold) |
---|
478 | 476 | { |
---|
479 | 477 | struct usb_host_interface *alt; |
---|