Commit 6baf139e authored by Djordje Zekovic's avatar Djordje Zekovic Committed by Greg Kroah-Hartman
Browse files

staging: usbip: use kcalloc instead of kzalloc for array allocations



The advantage of kcalloc is, that will prevent integer overflows which could
result from the multiplication of number of elements and size and it is also
a bit nicer to read.

Signed-off-by: default avatarDjordje Zekovic <dj@zeko.me>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 43339bed
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment