Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1500702
| From | SF Markus Elfring <elfring@users.sourceforge.net> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [media] RedRat3: Use kcalloc() in two functions? |
| Date | 2016-10-14 07:50 +0200 |
| Message-ID | <ss3xv-5Bi-11@gated-at.bofh.it> (permalink) |
| References | <qEuGl-43C-5@gated-at.bofh.it> <srR3j-5Qh-3@gated-at.bofh.it> <srR3j-5Qh-15@gated-at.bofh.it> <srRcZ-5TH-13@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
> Markus, please stop being _so_ mechanical and use your > brain a little too. By definition, sizeof(char) == 1. > > This _really_ should be kzalloc(RR3_FW_VERSION_LEN + 1,...) Do you expect that function call examples like the following will be equivalent? zbuffer = kzalloc(123, …); cbuffer = kcalloc(123, 1, …); Regards, Markus
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH 01/18] [media] RedRat3: Use kcalloc() in two functions SF Markus Elfring <elfring@users.sourceforge.net> - 2016-10-13 18:30 +0200
Re: [PATCH 01/18] [media] RedRat3: Use kcalloc() in two functions Joe Perches <joe@perches.com> - 2016-10-13 18:40 +0200
Re: [media] RedRat3: Use kcalloc() in two functions? SF Markus Elfring <elfring@users.sourceforge.net> - 2016-10-14 07:50 +0200
csiph-web