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 <socketcan@hartkopp.net>
This commit is contained in:
Oliver Hartkopp
2026-10-14 10:21:56 +00:00
parent cd0ff30788
commit 775611dba2
+3
View File
@@ -170,10 +170,13 @@ static int isobusfs_srv_dh_current_dir_res(struct isobusfs_srv_priv *priv,
switch (ret) { switch (ret) {
case -ENOENT: case -ENOENT:
error_code = ISOBUSFS_ERR_FILE_ORPATH_NOT_FOUND; error_code = ISOBUSFS_ERR_FILE_ORPATH_NOT_FOUND;
break;
case -ENOMEDIUM: case -ENOMEDIUM:
error_code = ISOBUSFS_ERR_VOLUME_NOT_INITIALIZED; error_code = ISOBUSFS_ERR_VOLUME_NOT_INITIALIZED;
break;
case -ENOMEM: case -ENOMEM:
error_code = ISOBUSFS_ERR_OUT_OF_MEM; error_code = ISOBUSFS_ERR_OUT_OF_MEM;
break;
default: default:
error_code = ISOBUSFS_ERR_OTHER; error_code = ISOBUSFS_ERR_OTHER;
} }