From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756566AbbCSRza (ORCPT ); Thu, 19 Mar 2015 13:55:30 -0400 Received: from mx0a-000f0801.pphosted.com ([67.231.144.122]:50606 "EHLO mx0a-000f0801.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751944AbbCSRz2 (ORCPT ); Thu, 19 Mar 2015 13:55:28 -0400 Message-ID: <550B0D89.2090501@brocade.com> Date: Thu, 19 Mar 2015 17:55:21 +0000 From: Brian Russell User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.5.0 MIME-Version: 1.0 To: "Hans J. Koch" , Greg Kroah-Hartman CC: Subject: [PATCH v8 0/2] uio: Fix uio hotplug issues Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.13.68,1.0.33,0.0.0000 definitions=2015-03-19_05:2015-03-19,2015-03-19,1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=2 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1402240000 definitions=main-1503190153 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Protect uio driver from crashing when its owner is unplugged while there are open fds. Brian Russell (2): uio: Request/free irq separate from dev lifecycle uio: Fix uio driver to refcount device v8: break out irq change into separate patch v7: use dev_set_name and fix error path in uio_register_device v6: ... and put them in the right place v5: add patch version changes v4: info struct passed in uio_register_device can be freed on unregister, so null out the field in uio_unregister_device and check accesses. v3: Embed struct device in struct uio_device, use refcounting on device, free uio_device on release. v2: Add blank line to header