Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 90b61386 authored by Wolfram Sang's avatar Wolfram Sang Committed by Greg Kroah-Hartman
Browse files

usb: wusbcore: crypto: don't print on ENOMEM



All kmalloc-based functions print enough information on failures.

Signed-off-by: default avatarWolfram Sang <wsa-dev@sang-engineering.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent dc0c32c9
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -229,10 +229,8 @@ static int wusb_ccm_mac(struct crypto_skcipher *tfm_cbc,
		zero_padding = sizeof(struct aes_ccm_block) - zero_padding;
	dst_size = blen + sizeof(b0) + sizeof(b1) + zero_padding;
	dst_buf = kzalloc(dst_size, GFP_KERNEL);
	if (dst_buf == NULL) {
		printk(KERN_ERR "E: can't alloc destination buffer\n");
	if (!dst_buf)
		goto error_dst_buf;
	}

	memset(iv, 0, sizeof(iv));