diff mbox series

net: Use correct default-path macro for downscript

Message ID 20201123062954.9680-1-zhukeqian1@huawei.com (mailing list archive)
State New, archived
Headers show
Series net: Use correct default-path macro for downscript | expand

Commit Message

zhukeqian Nov. 23, 2020, 6:29 a.m. UTC
Fixes: 63c4db4c2e6d (net: relocate paths to helpers and scripts)
Signed-off-by: Keqian Zhu <zhukeqian1@huawei.com>
---
 net/tap.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Jason Wang Nov. 23, 2020, 8:16 a.m. UTC | #1
On 2020/11/23 下午2:29, Keqian Zhu wrote:
> Fixes: 63c4db4c2e6d (net: relocate paths to helpers and scripts)
> Signed-off-by: Keqian Zhu <zhukeqian1@huawei.com>
> ---
>   net/tap.c | 3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/net/tap.c b/net/tap.c
> index c46ff66184..b8e5cca51c 100644
> --- a/net/tap.c
> +++ b/net/tap.c
> @@ -951,7 +951,8 @@ free_fail:
>               script = default_script = get_relocated_path(DEFAULT_NETWORK_SCRIPT);
>           }
>           if (!downscript) {
> -            downscript = default_downscript = get_relocated_path(DEFAULT_NETWORK_SCRIPT);
> +            downscript = default_downscript =
> +                                 get_relocated_path(DEFAULT_NETWORK_DOWN_SCRIPT);
>           }
>   
>           if (tap->has_ifname) {


Applied.

Thanks
diff mbox series

Patch

diff --git a/net/tap.c b/net/tap.c
index c46ff66184..b8e5cca51c 100644
--- a/net/tap.c
+++ b/net/tap.c
@@ -951,7 +951,8 @@  free_fail:
             script = default_script = get_relocated_path(DEFAULT_NETWORK_SCRIPT);
         }
         if (!downscript) {
-            downscript = default_downscript = get_relocated_path(DEFAULT_NETWORK_SCRIPT);
+            downscript = default_downscript =
+                                 get_relocated_path(DEFAULT_NETWORK_DOWN_SCRIPT);
         }
 
         if (tap->has_ifname) {