]> www.infradead.org Git - users/dwmw2/qemu.git/commit
net: Fix '-net nic,model=' for non-help arguments
authorDavid Woodhouse <dwmw@amazon.co.uk>
Tue, 6 Aug 2024 17:21:37 +0000 (18:21 +0100)
committerJason Wang <jasowang@redhat.com>
Mon, 12 Aug 2024 05:36:42 +0000 (13:36 +0800)
commitfa62cb989a9146c82f8f172715042852f5d36200
tree0942fcb6b3a10860750cea92db9d816084f35abf
parent0f397dcfecc9211d12c2c720c01eb32f0eaa7d23
net: Fix '-net nic,model=' for non-help arguments

Oops, don't *delete* the model option when checking for 'help'.

Fixes: 64f75f57f9d2 ("net: Reinstate '-net nic, model=help' output as documented in man page")
Reported-by: Hans <sungdgdhtryrt@gmail.com>
Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Cc: qemu-stable@nongnu.org
Reviewed-by: Michael Tokarev <mjt@tls.msk.ru>
Signed-off-by: Jason Wang <jasowang@redhat.com>
net/net.c