diff options
Diffstat (limited to 'ipc/sem.c')
-rw-r--r-- | ipc/sem.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1945,7 +1945,7 @@ static long do_semtimedop(int semid, struct sembuf __user *tsops, | |||
1945 | if (nsops > ns->sc_semopm) | 1945 | if (nsops > ns->sc_semopm) |
1946 | return -E2BIG; | 1946 | return -E2BIG; |
1947 | if (nsops > SEMOPM_FAST) { | 1947 | if (nsops > SEMOPM_FAST) { |
1948 | sops = kvmalloc(sizeof(*sops)*nsops, GFP_KERNEL); | 1948 | sops = kvmalloc_array(nsops, sizeof(*sops), GFP_KERNEL); |
1949 | if (sops == NULL) | 1949 | if (sops == NULL) |
1950 | return -ENOMEM; | 1950 | return -ENOMEM; |
1951 | } | 1951 | } |