Message ID | 827a0fe0-03a3-b5ca-db34-daff17095b8f@schaufler-ca.com (mailing list archive) |
---|---|
State | Handled Elsewhere |
Headers | show |
Series | [GIT,PULL] Smack patches for v6.0 | expand |
On Mon, Aug 1, 2022 at 1:13 PM Casey Schaufler <casey@schaufler-ca.com> wrote: > > There are two minor code clean-ups. One removes a touch of > dead code and the other replaces an instance of kzalloc + strncpy > with kstrndup. Hmm. That second one looks like it really should have just used "kmemdup()" (and a zero termination) instead, since it has already done all the string length calculations. Oh well. I guess the strndup() works too, but it seems kind of odd to do a strnlen() there when you have literally limited 'len' to smaller than the string you are going to duplicate. Linus
The pull request you sent on Mon, 1 Aug 2022 13:13:20 -0700:
> https://github.com/cschaufler/smack-next tags/Smack-for-6.0
has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/ea7099d5229c0fe9f9302b03a246e15e78b87011
Thank you!