Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1720677

Re: [PATCH] Staging rtlwifi efuse fix up a warning kzalloc

From Joe Perches <joe@perches.com>
Newsgroups linux.kernel
Subject Re: [PATCH] Staging rtlwifi efuse fix up a warning kzalloc
Date 2017-08-26 17:30 +0200
Message-ID <uiLc5-2R7-5@gated-at.bofh.it> (permalink)
References <uiJ0C-1BI-19@gated-at.bofh.it> <uiKzo-2nK-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Sat, 2017-08-26 at 09:48 -0500, Larry Finger wrote:
> I will NACK every 
> patch that tries to force code that I maintain to use kcalloc over kzalloc.

Your choice.

The concept behind the kzalloc with multiply vs kcalloc
is protection against multiplication overflow.

It's unlikely to solve any real problem with a
sizeof(foo) * small known number of entries.

It does have application when number of entries is
a user specified value.

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] Staging rtlwifi efuse fix up a warning kzalloc Yurii Pavlenko <pyldev@gmail.com> - 2017-08-26 15:10 +0200
  Re: [PATCH] Staging rtlwifi efuse fix up a warning kzalloc Larry Finger <Larry.Finger@lwfinger.net> - 2017-08-26 16:50 +0200
    Re: [PATCH] Staging rtlwifi efuse fix up a warning kzalloc Joe Perches <joe@perches.com> - 2017-08-26 17:30 +0200
      Re: [PATCH] Staging rtlwifi efuse fix up a warning kzalloc Dan Carpenter <dan.carpenter@oracle.com> - 2017-08-28 10:40 +0200

csiph-web