mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 00:24:41 -04:00
drbd: drbd_adm_new_resource(): Check if resource exists, not if it has any connections
Signed-off-by: Andreas Gruenbacher <agruen@linbit.com> Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
This commit is contained in:
parent
251b8f8eaf
commit
5c6610422a
1 changed files with 1 additions and 1 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in a new issue