]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/uwb/est.c
serial: serial_core.h needs console.h included first
[karo-tx-linux.git] / drivers / uwb / est.c
index de81ebf51784d086085e12f869dac022946caf0f..86ed7e61e597404e11b6cbc084e63e2ae48b93d7 100644 (file)
@@ -184,7 +184,7 @@ int uwb_est_create(void)
 
        uwb_est_size = 2;
        uwb_est_used = 0;
-       uwb_est = kzalloc(uwb_est_size * sizeof(uwb_est[0]), GFP_KERNEL);
+       uwb_est = kcalloc(uwb_est_size, sizeof(uwb_est[0]), GFP_KERNEL);
        if (uwb_est == NULL)
                return -ENOMEM;