aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/kprobes.c
diff options
context:
space:
mode:
authorBernd Schubert <bernd.schubert@itwm.fraunhofer.de>2012-01-20 18:43:54 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-02-13 11:16:54 -0800
commit3ef7302303a7886fd1e6dea9dd33fe2c41784199 (patch)
tree28fd40841617f919bdf5af9fd6553c40c2fdb59f /kernel/kprobes.c
parenta48d135810111baaedd01dfb833c06b094aa3a68 (diff)
downloadkernel_samsung_smdk4412-3ef7302303a7886fd1e6dea9dd33fe2c41784199.zip
kernel_samsung_smdk4412-3ef7302303a7886fd1e6dea9dd33fe2c41784199.tar.gz
kernel_samsung_smdk4412-3ef7302303a7886fd1e6dea9dd33fe2c41784199.tar.bz2
RDMA/core: Fix kernel panic by always initializing qp->usecnt
commit e47e321a35c741ee41b67976f8c6a3a7a42bc5c0 upstream. We have just been investigating kernel panics related to cq->ibcq.event_handler() completion calls. The problem is that ib_destroy_qp() fails with -EBUSY. Further investigation revealed qp->usecnt is not initialized. This counter was introduced in linux-3.2 by commit 0e0ec7e0638e ("RDMA/core: Export ib_open_qp() to share XRC TGT QPs") but it only gets initialized for IB_QPT_XRC_TGT, but it is checked in ib_destroy_qp() for any QP type. Fix this by initializing qp->usecnt for every QP we create. Signed-off-by: Bernd Schubert <bernd.schubert@itwm.fraunhofer.de> Signed-off-by: Sven Breuner <sven.breuner@itwm.fraunhofer.de> [ Initialize qp->usecnt in uverbs too. - Sean ] Signed-off-by: Sean Hefty <sean.hefty@intel.com> Signed-off-by: Roland Dreier <roland@purestorage.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/kprobes.c')
0 files changed, 0 insertions, 0 deletions