Commit ad6d455
committed
9p/net: return error on bogus (longer than requested) replies
Up until now we've been considering longer than requested replies as
acceptable, printing a message and just truncating the data,
but it makes more sense to consider these an error.
Make these fail with EIO instead.
Suggested-by: Christian Schoenebeck <linux_oss@crudebyte.com>
Message-ID: <20250317-p9_bogus_io_error-v1-1-9639f6d1561f@codewreck.org>
Signed-off-by: Dominique Martinet <asmadeus@codewreck.org>1 parent d0259a8 commit ad6d455
1 file changed
+10
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1594 | 1594 | | |
1595 | 1595 | | |
1596 | 1596 | | |
1597 | | - | |
| 1597 | + | |
| 1598 | + | |
| 1599 | + | |
1598 | 1600 | | |
1599 | 1601 | | |
1600 | 1602 | | |
| |||
1661 | 1663 | | |
1662 | 1664 | | |
1663 | 1665 | | |
1664 | | - | |
| 1666 | + | |
| 1667 | + | |
| 1668 | + | |
| 1669 | + | |
1665 | 1670 | | |
1666 | 1671 | | |
1667 | 1672 | | |
| |||
1713 | 1718 | | |
1714 | 1719 | | |
1715 | 1720 | | |
1716 | | - | |
| 1721 | + | |
1717 | 1722 | | |
1718 | 1723 | | |
1719 | 1724 | | |
| |||
2145 | 2150 | | |
2146 | 2151 | | |
2147 | 2152 | | |
2148 | | - | |
| 2153 | + | |
| 2154 | + | |
2149 | 2155 | | |
2150 | 2156 | | |
2151 | 2157 | | |
| |||
0 commit comments