CC: [email protected]
CC: [email protected]
TO: David Howells <[email protected]>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   fd0aa1a4567d0f09e1bfe367a950b004f99ac290
commit: ca7fb10059a5755908d46db81d1f3738cd26aa9f rxrpc: Split the server key 
type (rxrpc_s) into its own file
date:   7 months ago
:::::: branch date: 9 hours ago
:::::: commit date: 7 months ago
config: i386-randconfig-m021-20210618 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <[email protected]>
Reported-by: Dan Carpenter <[email protected]>

smatch warnings:
net/rxrpc/server_key.c:128 rxrpc_server_keyring() warn: passing a valid pointer 
to 'PTR_ERR'

vim +/PTR_ERR +128 net/rxrpc/server_key.c

ca7fb10059a575 David Howells 2020-09-16  112  
ca7fb10059a575 David Howells 2020-09-16  113  /*
ca7fb10059a575 David Howells 2020-09-16  114   * grab the security keyring for 
a server socket
ca7fb10059a575 David Howells 2020-09-16  115   */
ca7fb10059a575 David Howells 2020-09-16  116  int rxrpc_server_keyring(struct 
rxrpc_sock *rx, sockptr_t optval, int optlen)
ca7fb10059a575 David Howells 2020-09-16  117  {
ca7fb10059a575 David Howells 2020-09-16  118    struct key *key;
ca7fb10059a575 David Howells 2020-09-16  119    char *description;
ca7fb10059a575 David Howells 2020-09-16  120  
ca7fb10059a575 David Howells 2020-09-16  121    _enter("");
ca7fb10059a575 David Howells 2020-09-16  122  
ca7fb10059a575 David Howells 2020-09-16  123    if (optlen <= 0 || optlen > 
PAGE_SIZE - 1)
ca7fb10059a575 David Howells 2020-09-16  124            return -EINVAL;
ca7fb10059a575 David Howells 2020-09-16  125  
ca7fb10059a575 David Howells 2020-09-16  126    description = 
memdup_sockptr_nul(optval, optlen);
ca7fb10059a575 David Howells 2020-09-16  127    if (IS_ERR(description))
ca7fb10059a575 David Howells 2020-09-16 @128            return 
PTR_ERR(description);

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]

Attachment: .config.gz
Description: application/gzip

_______________________________________________
kbuild mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to