forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-11 04dd17822334871b23ea2862f7798fb0e0007777
kernel/arch/arm/oprofile/common.c
....@@ -88,7 +88,7 @@
8888 struct frame_tail buftail[2];
8989
9090 /* Also check accessibility of one struct frame_tail beyond */
91
- if (!access_ok(VERIFY_READ, tail, sizeof(buftail)))
91
+ if (!access_ok(tail, sizeof(buftail)))
9292 return NULL;
9393 if (__copy_from_user_inatomic(buftail, tail, sizeof(buftail)))
9494 return NULL;