浏览代码

[S390] cio: fix rc generation after chsc call

In some situations a rc in __chsc_do_secm will be overwritten
by another one. This shouldn't do harm since todays callers
don't check for _specific_ errors but fix it for the sake of
correctness.

Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Sebastian Ott 16 年之前
父节点
当前提交
17e7d87d9f
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/s390/cio/chsc.c

+ 1 - 0
drivers/s390/cio/chsc.c

@@ -589,6 +589,7 @@ __chsc_do_secm(struct channel_subsystem *css, int enable, void *page)
 	case 0x0102:
 	case 0x0102:
 	case 0x0103:
 	case 0x0103:
 		ret = -EINVAL;
 		ret = -EINVAL;
+		break;
 	default:
 	default:
 		ret = chsc_error_from_response(secm_area->response.code);
 		ret = chsc_error_from_response(secm_area->response.code);
 	}
 	}