All of lore.kernel.org
 help / color / mirror / Atom feed
* [ti:ti-linux-5.4.y 5282/5299] drivers/crypto/sa2ul.c:2074:15-21: ERROR: application of sizeof to pointer
@ 2020-04-08 18:14 kbuild test robot
  2020-04-08 18:14 ` [PATCH] crypto: sa2ul: fix noderef.cocci warnings kbuild test robot
  0 siblings, 1 reply; 2+ messages in thread
From: kbuild test robot @ 2020-04-08 18:14 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 663 bytes --]

tree:   git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git ti-linux-5.4.y
head:   3ba545d6275c823b8c32ac4bf6dffbd402749011
commit: 40741e7feb85b1a21bee7cd518ed4ef6e600bf23 [5282/5299] crypto: sa2ul: add support for multichunk sha handling

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@intel.com>


coccinelle warnings: (new ones prefixed by >>)

>> drivers/crypto/sa2ul.c:2074:15-21: ERROR: application of sizeof to pointer

Please review and possibly fold the followup patch.

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH] crypto: sa2ul: fix noderef.cocci warnings
  2020-04-08 18:14 [ti:ti-linux-5.4.y 5282/5299] drivers/crypto/sa2ul.c:2074:15-21: ERROR: application of sizeof to pointer kbuild test robot
@ 2020-04-08 18:14 ` kbuild test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kbuild test robot @ 2020-04-08 18:14 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 1027 bytes --]

From: kbuild test robot <lkp@intel.com>

drivers/crypto/sa2ul.c:2074:15-21: ERROR: application of sizeof to pointer

 sizeof when applied to a pointer typed expression gives the size of
 the pointer

Generated by: scripts/coccinelle/misc/noderef.cocci

Fixes: 40741e7feb85 ("crypto: sa2ul: add support for multichunk sha handling")
Signed-off-by: kbuild test robot <lkp@intel.com>
---

tree:   git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git ti-linux-5.4.y
head:   3ba545d6275c823b8c32ac4bf6dffbd402749011
commit: 40741e7feb85b1a21bee7cd518ed4ef6e600bf23 [5282/5299] crypto: sa2ul: add support for multichunk sha handling

 sa2ul.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/crypto/sa2ul.c
+++ b/drivers/crypto/sa2ul.c
@@ -2071,7 +2071,7 @@ static int sa_sham_update(struct ahash_r
 			return -ENOMEM;
 		}
 
-		sg = kzalloc(sizeof(sg) * 2, GFP_KERNEL);
+		sg = kzalloc(sizeof(*sg) * 2, GFP_KERNEL);
 
 		sg_init_table(sg, 1);
 		sg_set_buf(sg, buf, req->nbytes);

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-04-08 18:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-08 18:14 [ti:ti-linux-5.4.y 5282/5299] drivers/crypto/sa2ul.c:2074:15-21: ERROR: application of sizeof to pointer kbuild test robot
2020-04-08 18:14 ` [PATCH] crypto: sa2ul: fix noderef.cocci warnings kbuild test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.