From: Jason Wang Date: Thu, 20 Nov 2014 09:03:05 +0000 (+0800) Subject: virtio-net: validate features during probe X-Git-Tag: omap-for-v3.19/fixes-for-merge-window~83^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=892d6eb1245b771987afb8667a65344e568d3439;p=pandora-kernel.git virtio-net: validate features during probe We currently trigger BUG when VIRTIO_NET_F_CTRL_VQ is not set but one of features depending on it is. That's not a friendly way to report errors to hypervisors. Let's check, and fail probe instead. Cc: Rusty Russell Cc: Cornelia Huck Cc: Wanlong Gao Signed-off-by: Michael S. Tsirkin Signed-off-by: Jason Wang Acked-by: Cornelia Huck Acked-by: Michael S. Tsirkin Signed-off-by: David S. Miller --- Reading git-diff-tree failed