From 775611dba246103e9dbabac4a4b45754cb55cecc Mon Sep 17 00:00:00 2001 From: Oliver Hartkopp Date: Wed, 14 Oct 2026 10:15:40 +0000 Subject: [PATCH] isobusfs: srv: add missing break statements in current directory response The switch statement which maps the errors of the current directory access check to the ISOBUS FS error codes had no break statements. Due to the fall through every error was reported as ISOBUSFS_ERR_OTHER. Add the missing break statements. Assisted-by: Claude:claude-opus-5-5 Signed-off-by: Oliver Hartkopp --- isobusfs/isobusfs_srv_dh.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/isobusfs/isobusfs_srv_dh.c b/isobusfs/isobusfs_srv_dh.c index 37cec21..b17dbc4 100644 --- a/isobusfs/isobusfs_srv_dh.c +++ b/isobusfs/isobusfs_srv_dh.c @@ -170,10 +170,13 @@ static int isobusfs_srv_dh_current_dir_res(struct isobusfs_srv_priv *priv, switch (ret) { case -ENOENT: error_code = ISOBUSFS_ERR_FILE_ORPATH_NOT_FOUND; + break; case -ENOMEDIUM: error_code = ISOBUSFS_ERR_VOLUME_NOT_INITIALIZED; + break; case -ENOMEM: error_code = ISOBUSFS_ERR_OUT_OF_MEM; + break; default: error_code = ISOBUSFS_ERR_OTHER; }