isobusfs: do not kill application on error_queue error

Kernel may notify us about some error, which may happens if the bus was
in the error state. But this is not a good reason to kill application,
especially the server side.

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
pull/530/head
Oleksij Rempel 2024-05-25 07:19:31 +02:00
parent d05810f5fe
commit 1e8bc8fd34
2 changed files with 4 additions and 4 deletions

View File

@ -288,8 +288,8 @@ static int isobusfs_cli_handle_events(struct isobusfs_priv *priv, unsigned int n
};
ret = isobusfs_recv_err(priv->sock_ccm, &emsg);
if (ret && ret != -EINTR)
return ret;
if (ret)
pr_warn("error queue reported error: %i", ret);
}
} else if (ev->data.fd == STDIN_FILENO) {
if (!priv->interactive) {

View File

@ -221,8 +221,8 @@ static int isobusfs_srv_handle_events(struct isobusfs_srv_priv *priv, unsigned i
};
ret = isobusfs_recv_err(priv->sock_fss, &emsg);
if (ret && ret != -EINTR)
return ret;
if (ret)
pr_warn("error queue reported error: %i", ret);
}
}