]> asedeno.scripts.mit.edu Git - linux.git/commit
staging: rts5208: rtsx.c: Fix invalid use of sizeof in rtsx_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Mon, 17 Oct 2016 23:35:49 +0000 (23:35 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Oct 2016 07:59:48 +0000 (09:59 +0200)
commitef5aa934cf031ef9525b29e35c5d381698d55ca5
treec9df5e2757799fbbf9c36fa5d24cdfd65b2a3d50
parentd298ec65803b48a764ae9ccf2ed2238669a4d02b
staging: rts5208: rtsx.c: Fix invalid use of sizeof in rtsx_probe()

sizeof() when applied to a pointer typed expression gives the
size of the pointer, not that of the pointed data.

Fixes: 2eb9d8cbb3c3 ("staging: rts5208: rtsx.c: Alloc sizeof struct")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rts5208/rtsx.c