mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
um: Remove redundant range check from __access_ok_vsyscall()
The only caller __access_ok() is already doing the same check through __addr_range_nowrap(). Remove the redundant check. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> Link: https://patch.msgid.link/20251028-uml-remove-32bit-pseudo-vdso-v1-7-e930063eff5f@weissschuh.net Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
committed by
Johannes Berg
parent
78fdfc9fc4
commit
880f615bf9
@@ -17,8 +17,7 @@
|
||||
|
||||
#define __access_ok_vsyscall(addr, size) \
|
||||
(((unsigned long) (addr) >= FIXADDR_USER_START) && \
|
||||
((unsigned long) (addr) + (size) <= FIXADDR_USER_END) && \
|
||||
((unsigned long) (addr) + (size) >= (unsigned long)(addr)))
|
||||
((unsigned long) (addr) + (size) <= FIXADDR_USER_END))
|
||||
|
||||
#define __addr_range_nowrap(addr, size) \
|
||||
((unsigned long) (addr) <= ((unsigned long) (addr) + (size)))
|
||||
|
||||
Reference in New Issue
Block a user