cfg80211: Fix array-bounds warning in fragment copy
[linux/fpc-iii.git] / arch / nios2 / mm / extable.c
blob2574dba0407d0ff3732f002586ed91adfd005b01
1 /*
2 * Copyright (C) 2010, Tobias Klauser <tklauser@distanz.ch>
3 * Copyright (C) 2009, Wind River Systems Inc
4 * Implemented by fredrik.markstrom@gmail.com and ivarholmqvist@gmail.com
6 * This file is subject to the terms and conditions of the GNU General Public
7 * License. See the file "COPYING" in the main directory of this archive
8 * for more details.
9 */
11 #include <linux/extable.h>
12 #include <linux/uaccess.h>
14 int fixup_exception(struct pt_regs *regs)
16 const struct exception_table_entry *fixup;
18 fixup = search_exception_tables(regs->ea);
19 if (fixup) {
20 regs->ea = fixup->fixup;
21 return 1;
24 return 0;