hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * linux/drivers/video/omap2/omapfb-ioctl.c
34 *
....@@ -6,18 +7,6 @@
67 *
78 * Some code and ideas taken from drivers/video/omap/ driver
89 * 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/>.
2110 */
2211
2312 #include <linux/fb.h>
....@@ -493,9 +482,6 @@
493482 if (!display || !display->driver->memory_read)
494483 return -ENOENT;
495484
496
- if (!access_ok(VERIFY_WRITE, mr->buffer, mr->buffer_size))
497
- return -EFAULT;
498
-
499485 if (mr->w > 4096 || mr->h > 4096)
500486 return -EINVAL;
501487
....@@ -774,7 +760,7 @@
774760 r = -ENODEV;
775761 break;
776762 }
777
- /* FALLTHROUGH */
763
+ fallthrough;
778764
779765 case OMAPFB_WAITFORVSYNC:
780766 DBG("ioctl WAITFORVSYNC\n");