Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[S390] monwriter: fix return code handling

Fix return code handling within monwrite_new_hdr(). Return code handling
is everwhere implemented, the return code of the diagnose function was
just not passed.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>

authored by

Heiko Carstens and committed by
Martin Schwidefsky
37fa9975 364c18d8

+2 -2
+2 -2
drivers/s390/char/monwriter.c
··· 97 97 { 98 98 struct monwrite_hdr *monhdr = &monpriv->hdr; 99 99 struct mon_buf *monbuf; 100 - int rc; 100 + int rc = 0; 101 101 102 102 if (monhdr->datalen > MONWRITE_MAX_DATALEN || 103 103 monhdr->mon_function > MONWRITE_START_CONFIG || ··· 135 135 mon_buf_count++; 136 136 } 137 137 monpriv->current_buf = monbuf; 138 - return 0; 138 + return rc; 139 139 } 140 140 141 141 static int monwrite_new_data(struct mon_private *monpriv)