Browse Source

MT#55283 fix off-by-one bug

Change-Id: I578554e956a6630b49362ea9245255c13d6c69b4
pull/1126/merge
Richard Fuchs 3 weeks ago
parent
commit
4071e42a3e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      kernel-module/xt_RTPENGINE.c

+ 1
- 1
kernel-module/xt_RTPENGINE.c View File

@ -2059,7 +2059,7 @@ static void *shm_map_resolve(struct rtpengine_table *t, void *p, size_t size) {
goto out;
// start address is within range - check end address
if ((unsigned long) p + size >= rmm->uaddr + rmm->size)
if ((unsigned long) p + size > rmm->uaddr + rmm->size)
goto out;
ret = rmm->kaddr + ((unsigned long) p - rmm->uaddr);


Loading…
Cancel
Save