Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 222154
b: refs/heads/master
c: 16d2ce2
h: refs/heads/master
v: v3
  • Loading branch information
Sebastian Ott authored and Martin Schwidefsky committed Nov 10, 2010
1 parent 8d856ef commit 22ddf4d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3b210e7652a0ac638b1a267b6a181c8f742d8462
refs/heads/master: 16d2ce271c6b8b3527ed1461d03b5f373d53f78f
11 changes: 10 additions & 1 deletion trunk/drivers/s390/cio/device.c
Original file line number Diff line number Diff line change
Expand Up @@ -1455,7 +1455,16 @@ static int io_subchannel_sch_event(struct subchannel *sch, int process)
break;
case IO_SCH_UNREG_ATTACH:
case IO_SCH_UNREG:
if (cdev)
if (!cdev)
break;
if (cdev->private->state == DEV_STATE_SENSE_ID) {
/*
* Note: delayed work triggered by this event
* and repeated calls to sch_event are synchronized
* by the above check for work_pending(cdev).
*/
dev_fsm_event(cdev, DEV_EVENT_NOTOPER);
} else
ccw_device_set_notoper(cdev);
break;
case IO_SCH_NOP:
Expand Down

0 comments on commit 22ddf4d

Please sign in to comment.