« Previous | Next » 

Revision f7c31d63

IDf7c31d6381f2cbac03e82fc23133f6863606edd8

Added by Jason Wang over 13 years ago

net: properly handle illegal fd/vhostfd from command line

When hanlding fd/vhostfd form command line through net_handle_fd_param(),
we need to check mon and return value of strtol() otherwise we could
get segmentation fault or invalid fd when user type an illegal fd/vhostfd.

This patch is based on the suggestions from
Luiz Capitulino <>.

Signed-off-by: Jason Wang <>
Reviewed-by: Luiz Capitulino <>
Signed-off-by: Michael S. Tsirkin <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences