forked from luck/tmp_suning_uos_patched
microblaze: remove bad_user_access_length
This function was actually causing harm, by hiding errors about invalid sized get_user/put_user accesses. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Michal Simek <monstr@monstr.eu>
This commit is contained in:
parent
bb09791344
commit
838d2406ee
@ -34,10 +34,9 @@ extern int ___range_ok(unsigned long addr, unsigned long size);
|
||||
#define access_ok(type, addr, size) (__range_ok((addr), (size)) == 0)
|
||||
#define __access_ok(add, size) (__range_ok((addr), (size)) == 0)
|
||||
|
||||
extern inline int bad_user_access_length(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
/* Undefined function to trigger linker error */
|
||||
extern int bad_user_access_length(void);
|
||||
|
||||
/* FIXME this is function for optimalization -> memcpy */
|
||||
#define __get_user(var, ptr) \
|
||||
({ \
|
||||
|
Loading…
Reference in New Issue
Block a user