projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
251b8f8
)
drbd: drbd_adm_new_resource(): Check if resource exists, not if it has any connections
author
Andreas Gruenbacher
<agruen@linbit.com>
Tue, 5 Jul 2011 16:26:00 +0000
(18:26 +0200)
committer
Philipp Reisner
<philipp.reisner@linbit.com>
Mon, 17 Feb 2014 15:46:41 +0000
(16:46 +0100)
Signed-off-by: Andreas Gruenbacher <agruen@linbit.com>
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
drivers/block/drbd/drbd_nl.c
patch
|
blob
|
history
diff --git
a/drivers/block/drbd/drbd_nl.c
b/drivers/block/drbd/drbd_nl.c
index 6f11d85792631223264d03e5252afe7b6e00af2d..fde2d257eb86fd49bdd7b651b56a10c22315d5c4 100644
(file)
--- a/
drivers/block/drbd/drbd_nl.c
+++ b/
drivers/block/drbd/drbd_nl.c
@@
-3301,7
+3301,7
@@
int drbd_adm_new_resource(struct sk_buff *skb, struct genl_info *info)
if (retcode != NO_ERROR)
goto out;
- if (adm_ctx.
connection
) {
+ if (adm_ctx.
resource
) {
if (info->nlhdr->nlmsg_flags & NLM_F_EXCL) {
retcode = ERR_INVALID_REQUEST;
drbd_msg_put_info("resource exists");