.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * PowerNV LPC bus handling. |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright 2013 IBM Corp. |
---|
5 | | - * |
---|
6 | | - * This program is free software; you can redistribute it and/or |
---|
7 | | - * modify it under the terms of the GNU General Public License |
---|
8 | | - * as published by the Free Software Foundation; either version |
---|
9 | | - * 2 of the License, or (at your option) any later version. |
---|
10 | 6 | */ |
---|
11 | 7 | |
---|
12 | 8 | #include <linux/kernel.h> |
---|
.. | .. |
---|
192 | 188 | u32 data, pos, len, todo; |
---|
193 | 189 | int rc; |
---|
194 | 190 | |
---|
195 | | - if (!access_ok(VERIFY_WRITE, ubuf, count)) |
---|
| 191 | + if (!access_ok(ubuf, count)) |
---|
196 | 192 | return -EFAULT; |
---|
197 | 193 | |
---|
198 | 194 | todo = count; |
---|
.. | .. |
---|
283 | 279 | u32 data, pos, len, todo; |
---|
284 | 280 | int rc; |
---|
285 | 281 | |
---|
286 | | - if (!access_ok(VERIFY_READ, ubuf, count)) |
---|
| 282 | + if (!access_ok(ubuf, count)) |
---|
287 | 283 | return -EFAULT; |
---|
288 | 284 | |
---|
289 | 285 | todo = count; |
---|