« Previous | Next » 

Revision f7c31d63


Added by Jason Wang over 10 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 <>


  • added
  • modified
  • copied
  • renamed
  • deleted

View differences