Home
last modified time | relevance | path

Searched refs:nterms (Results 1 – 3 of 3) sorted by relevance

/OK3568_Linux_fs/buildroot/boot/grub2/
H A D0005-calloc-Use-calloc-at-most-places.patch1231 unsigned nterms;
1240 nterms++;
1242 - cl_terms = grub_malloc (sizeof (cl_terms[0]) * nterms);
1243 + cl_terms = grub_calloc (nterms, sizeof (cl_terms[0]));
1283 - linep->pos = grub_zalloc (screen->nterms * sizeof (linep->pos[0]));
1285 + linep->pos = grub_calloc (screen->nterms, sizeof (linep->pos[0]));
1320 - screen->lines[i].pos = grub_zalloc (screen->nterms * sizeof (screen->lines[i].pos[0]));
1321 + screen->lines[i].pos = grub_calloc (screen->nterms, sizeof (screen->lines[i].pos[0]));
1329 - screen->terms = grub_zalloc (screen->nterms * sizeof (screen->terms[0]));
1330 + screen->terms = grub_calloc (screen->nterms, sizeof (screen->terms[0]));
H A D0006-malloc-Use-overflow-checking-primitives-where-we-do-.patch1068 @@ -307,12 +308,21 @@ cl_insert (struct cmdline_term *cl_terms, unsigned nterms,
/OK3568_Linux_fs/kernel/drivers/media/usb/uvc/
H A Duvc_driver.c1786 unsigned int nterms = 0; in uvc_print_terms() local
1794 if (nterms) in uvc_print_terms()
1796 if (++nterms >= 4) { in uvc_print_terms()