Browse Source

MT#55283 safeguard against kmalloc failure

closes #1797

Change-Id: I8036cad421d996b09e95946094fd43a55324778e
pull/1802/head
Richard Fuchs 2 years ago
parent
commit
6bdedc54ae
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      kernel-module/xt_RTPENGINE.c

+ 3
- 0
kernel-module/xt_RTPENGINE.c View File

@ -1455,7 +1455,10 @@ static ssize_t proc_blist_read(struct file *f, char __user *b, size_t l, loff_t
if (!g)
goto err;
err = -ENOMEM;
opp = kzalloc(sizeof(*opp), GFP_KERNEL);
if (!opp)
goto err;
memcpy(&opp->target, &g->target, sizeof(opp->target));


Loading…
Cancel
Save