.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * linux/drivers/video/omap2/omapfb-ioctl.c |
---|
3 | 4 | * |
---|
.. | .. |
---|
6 | 7 | * |
---|
7 | 8 | * Some code and ideas taken from drivers/video/omap/ driver |
---|
8 | 9 | * by Imre Deak. |
---|
9 | | - * |
---|
10 | | - * This program is free software; you can redistribute it and/or modify it |
---|
11 | | - * under the terms of the GNU General Public License version 2 as published by |
---|
12 | | - * the Free Software Foundation. |
---|
13 | | - * |
---|
14 | | - * This program is distributed in the hope that it will be useful, but WITHOUT |
---|
15 | | - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
---|
16 | | - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
---|
17 | | - * more details. |
---|
18 | | - * |
---|
19 | | - * You should have received a copy of the GNU General Public License along with |
---|
20 | | - * this program. If not, see <http://www.gnu.org/licenses/>. |
---|
21 | 10 | */ |
---|
22 | 11 | |
---|
23 | 12 | #include <linux/fb.h> |
---|
.. | .. |
---|
493 | 482 | if (!display || !display->driver->memory_read) |
---|
494 | 483 | return -ENOENT; |
---|
495 | 484 | |
---|
496 | | - if (!access_ok(VERIFY_WRITE, mr->buffer, mr->buffer_size)) |
---|
497 | | - return -EFAULT; |
---|
498 | | - |
---|
499 | 485 | if (mr->w > 4096 || mr->h > 4096) |
---|
500 | 486 | return -EINVAL; |
---|
501 | 487 | |
---|
.. | .. |
---|
774 | 760 | r = -ENODEV; |
---|
775 | 761 | break; |
---|
776 | 762 | } |
---|
777 | | - /* FALLTHROUGH */ |
---|
| 763 | + fallthrough; |
---|
778 | 764 | |
---|
779 | 765 | case OMAPFB_WAITFORVSYNC: |
---|
780 | 766 | DBG("ioctl WAITFORVSYNC\n"); |
---|