# Re: \[PATCH net v1 2/3\] net: devmem: return EMSGSIZE on type mismatch

- From: Pavel Begunkov \<asml.silence@gmail.com\>
- Date: 2026-08-02 12:26:43 
- List: netdev
- Page: https://ratatoskr.run/netdev/2026/08/17354297
- Thread: https://ratatoskr.run/netdev/2026/08/17352681/t.md

```text
On 8/1/26 13:52, Mina Almasry wrote:
> When a devmem payload mixes with a standard page payload, return
> -EMSGSIZE instead of -EFAULT. This enables tcp_sendmsg to seamlessly
> fall back to creating a new segment instead of failing the socket send.
>
> Fixes: bd61848900bff ("net: devmem: Implement TX path")
> Cc: Pavel Begunkov <asml.silence@gmail.com>
> Cc: Stanislav Fomichev <sdf@fomichev.me>
> Cc: Bobby Eshleman <redacted>
> Signed-off-by: Mina Almasry <redacted>

Reviewed-by: Pavel Begunkov <asml.silence@gmail.com>

-- 
Pavel Begunkov

```
