android_kernel_google_msm/drivers/infiniband/hw/ehca
Yann Droneaud 794f9950eb IB/ehca: Returns an error on ib_copy_to_udata() failure
commit 5bdb0f02ad upstream.

In case of error when writing to userspace, function ehca_create_cq()
does not set an error code before following its error path.

This patch sets the error code to -EFAULT when ib_copy_to_udata()
fails.

This was caught when using spatch (aka. coccinelle)
to rewrite call to ib_copy_{from,to}_udata().

Link: 75ebf2c103:ib_copy_udata.cocci
Link: http://marc.info/?i=cover.1394485254.git.ydroneaud@opteya.com
Signed-off-by: Yann Droneaud <ydroneaud@opteya.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-06 07:51:43 -07:00
..
ehca_av.c
ehca_classes.h
ehca_classes_pSeries.h
ehca_cq.c
ehca_eq.c
ehca_hca.c
ehca_irq.c
ehca_irq.h
ehca_iverbs.h
ehca_main.c
ehca_mcast.c
ehca_mrmw.c
ehca_mrmw.h
ehca_pd.c
ehca_qes.h
ehca_qp.c
ehca_reqs.c
ehca_sqp.c
ehca_tools.h
ehca_uverbs.c
hcp_if.c
hcp_if.h
hcp_phyp.c
hcp_phyp.h
hipz_fns.h
hipz_fns_core.h
hipz_hw.h
ipz_pt_fn.c
ipz_pt_fn.h
Kconfig
Makefile