Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial
Pull trivial tree changes from Jiri Kosina: "Summer edition of trivial tree updates" * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (23 commits) doc: fix two typos in watchdog-api.txt irq-gic: remove file name from heading comment MAINTAINERS: Add miscdevice.h to file list for char/misc drivers. scsi: mvsas: mv_sas.c: Fix for possible null pointer dereference doc: replace "practise" with "practice" in Documentation befs: remove check for CONFIG_BEFS_RW scsi: doc: fix 'SCSI_NCR_SETUP_MASTER_PARITY' drivers/usb/phy/phy.c: remove a leading space mfd: fix comment cpuidle: fix comment doc: hpfall.c: fix missing null-terminate after strncpy call usb: doc: hotplug.txt code typos kbuild: fix comment in Makefile.modinst SH: add proper prompt to SH_MAGIC_PANEL_R2_VERSION ARM: msm: Remove MSM_SCM crypto: Remove MPILIB_EXTRA doc: CN: remove dead link, kerneltrap.org no longer works media: update reference, kerneltrap.org no longer works hexagon: update reference, kerneltrap.org no longer works doc: LSM: update reference, kerneltrap.org no longer works ...
This commit is contained in:
@@ -1344,19 +1344,23 @@ void mvs_dev_gone_notify(struct domain_device *dev)
|
||||
{
|
||||
unsigned long flags = 0;
|
||||
struct mvs_device *mvi_dev = dev->lldd_dev;
|
||||
struct mvs_info *mvi = mvi_dev->mvi_info;
|
||||
struct mvs_info *mvi;
|
||||
|
||||
if (!mvi_dev) {
|
||||
mv_dprintk("found dev has gone.\n");
|
||||
return;
|
||||
}
|
||||
|
||||
mvi = mvi_dev->mvi_info;
|
||||
|
||||
spin_lock_irqsave(&mvi->lock, flags);
|
||||
|
||||
if (mvi_dev) {
|
||||
mv_dprintk("found dev[%d:%x] is gone.\n",
|
||||
mvi_dev->device_id, mvi_dev->dev_type);
|
||||
mvs_release_task(mvi, dev);
|
||||
mvs_free_reg_set(mvi, mvi_dev);
|
||||
mvs_free_dev(mvi_dev);
|
||||
} else {
|
||||
mv_dprintk("found dev has gone.\n");
|
||||
}
|
||||
mv_dprintk("found dev[%d:%x] is gone.\n",
|
||||
mvi_dev->device_id, mvi_dev->dev_type);
|
||||
mvs_release_task(mvi, dev);
|
||||
mvs_free_reg_set(mvi, mvi_dev);
|
||||
mvs_free_dev(mvi_dev);
|
||||
|
||||
dev->lldd_dev = NULL;
|
||||
mvi_dev->sas_device = NULL;
|
||||
|
||||
|
Reference in New Issue
Block a user