.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (c) International Business Machines Corp., 2006 |
---|
3 | 4 | * Copyright (c) Nokia Corporation, 2006, 2007 |
---|
4 | | - * |
---|
5 | | - * This program is free software; you can redistribute it and/or modify |
---|
6 | | - * it under the terms of the GNU General Public License as published by |
---|
7 | | - * the Free Software Foundation; either version 2 of the License, or |
---|
8 | | - * (at your option) any later version. |
---|
9 | | - * |
---|
10 | | - * This program is distributed in the hope that it will be useful, |
---|
11 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
12 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See |
---|
13 | | - * the GNU General Public License for more details. |
---|
14 | | - * |
---|
15 | | - * You should have received a copy of the GNU General Public License |
---|
16 | | - * along with this program; if not, write to the Free Software |
---|
17 | | - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
---|
18 | 5 | * |
---|
19 | 6 | * Author: Artem Bityutskiy (Битюцкий Артём) |
---|
20 | 7 | */ |
---|
.. | .. |
---|
1307 | 1294 | void *buf1; |
---|
1308 | 1295 | loff_t addr = (loff_t)pnum * ubi->peb_size + offset; |
---|
1309 | 1296 | |
---|
1310 | | - if (!ubi_dbg_chk_io(ubi)) |
---|
| 1297 | + if (false) |
---|
1311 | 1298 | return 0; |
---|
1312 | 1299 | |
---|
1313 | | - buf1 = __vmalloc(len, GFP_NOFS, PAGE_KERNEL); |
---|
| 1300 | + buf1 = __vmalloc(len, GFP_NOFS); |
---|
1314 | 1301 | if (!buf1) { |
---|
1315 | 1302 | ubi_err(ubi, "cannot allocate memory to check writes"); |
---|
1316 | 1303 | return 0; |
---|
.. | .. |
---|
1374 | 1361 | if (!ubi_dbg_chk_io(ubi)) |
---|
1375 | 1362 | return 0; |
---|
1376 | 1363 | |
---|
1377 | | - buf = __vmalloc(len, GFP_NOFS, PAGE_KERNEL); |
---|
| 1364 | + buf = __vmalloc(len, GFP_NOFS); |
---|
1378 | 1365 | if (!buf) { |
---|
1379 | 1366 | ubi_err(ubi, "cannot allocate memory to check for 0xFFs"); |
---|
1380 | 1367 | return 0; |
---|