staging: usbip: use kcalloc instead of kzalloc for array allocations
authorDjordje Zekovic <dj@zeko.me>
Fri, 23 May 2014 14:18:03 +0000 (14:18 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 May 2014 19:38:34 +0000 (04:38 +0900)
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: Djordje Zekovic <dj@zeko.me>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/usbip/stub_tx.c

Simple merge