From: Michael S. Tsirkin Date: Thu, 5 Mar 2015 02:54:41 +0000 (+1030) Subject: virtio_balloon: set DRIVER_OK before using device X-Git-Tag: omap-for-v4.2/o2_dc~305^2~8 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=88660f7fb94cda1f8f63ee92bfcd0db39a6361e2;p=pandora-kernel.git virtio_balloon: set DRIVER_OK before using device virtio spec requires that all drivers set DRIVER_OK before using devices. While balloon isn't yet included in the virtio 1 spec, previous spec versions also required this. virtio balloon might violate this rule: probe calls kthread_run before setting DRIVER_OK, which might run immediately and cause balloon to inflate/deflate. To fix, call virtio_device_ready before running the kthread. Signed-off-by: Michael S. Tsirkin Signed-off-by: Rusty Russell Cc: stable@kernel.org --- Reading git-diff-tree failed