]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
staging: wfx: fix swapped arguments in memset call
authorColin Ian King <colin.king@canonical.com>
Wed, 9 Oct 2019 09:46:02 +0000 (10:46 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Oct 2019 08:46:26 +0000 (10:46 +0200)
commit0bb0dff0cc16ac58e3f0123bda3035547da30d55
treeaf74062c30fb392e7cbeef0351de5be3bf34e0c3
parentc0981afd8cd6e7176b4b9fe2186087695463ebde
staging: wfx: fix swapped arguments in memset call

The memset appears to have the 2nd and 3rd arguments in the wrong
order, fix this by swapping these around into the correct order.

Addresses-Coverity: ("Memset fill truncated")
Fixes: 4f8b7fabb15d ("staging: wfx: allow to send commands to chip")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
Link: https://lore.kernel.org/r/20191009094602.19663-1-colin.king@canonical.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wfx/debug.c