[PATCH] net: Use correct default-path macro for downscript

Keqian Zhu posted 1 patch 3 years, 4 months ago
Test checkpatch passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20201123062954.9680-1-zhukeqian1@huawei.com
Maintainers: Jason Wang <jasowang@redhat.com>
net/tap.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
[PATCH] net: Use correct default-path macro for downscript
Posted by Keqian Zhu 3 years, 4 months ago
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) {
-- 
2.23.0


Re: [PATCH] net: Use correct default-path macro for downscript
Posted by Jason Wang 3 years, 4 months ago
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