From: Martin Schwidefsky <schwidefsky@de.ibm.com>
3270 device driver changes:
- Add NULL pointer checks.
return; /* Sucessfully restarted. */
break;
case RAW3270_IO_STOP:
+ if (!rq)
+ break;
raw3270_halt_io_nolock(rp, rq);
rq->rc = -EIO;
break;
if (rc) {
/* Didn't work. Try to reactivate the old view. */
rp->view = oldview;
- if (oldview->fn->activate(oldview) != 0) {
+ if (!oldview || oldview->fn->activate(oldview) != 0) {
/* Didn't work as well. Try any other view. */
list_for_each_entry(nv, &rp->view_list, list)
if (nv != view && nv != oldview) {