Thread (61 messages) 61 messages, 10 authors, 2020-08-14

Re: [RFC PATCH v5 05/11] fs: add security blob and hooks for block_device

From: Al Viro <viro@zeniv.linux.org.uk>
Date: 2020-07-28 22:40:43
Also in: dm-devel, linux-block, linux-fsdevel, linux-integrity, lkml

On Tue, Jul 28, 2020 at 03:22:59PM -0700, Casey Schaufler wrote:
quoted
+	hlist_for_each_entry(p, &security_hook_heads.bdev_setsecurity, list) {
+		rc = p->hook.bdev_setsecurity(bdev, name, value, size);
+
+		if (rc == -ENOSYS)
+			rc = 0;
+
+		if (rc != 0)
Perhaps:
		else if (rc != 0)
quoted
+			break;
+	}
+
+	return rc;
	hlist_for_each_entry(p, &security_hook_heads.bdev_setsecurity, list) {
		rc = p->hook.bdev_setsecurity(bdev, name, value, size);
		if (rc && rc != -ENOSYS)
			return rc;
	}
	return 0;

Easier to reason about that way...
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help