diff options
| author | Amit Shah <[email protected]> | 2013-03-08 00:30:18 +0000 |
|---|---|---|
| committer | Rusty Russell <[email protected]> | 2013-03-08 00:30:43 +0000 |
| commit | e84e7a56a3aa2963db506299e29a5f3f09377f9b (patch) | |
| tree | 3c368fc922977af1760932c55fcfb69e20126cfa /net/unix/af_unix.c | |
| parent | hw_random: make buffer usable in scatterlist. (diff) | |
| download | kernel-e84e7a56a3aa2963db506299e29a5f3f09377f9b.tar.gz kernel-e84e7a56a3aa2963db506299e29a5f3f09377f9b.zip | |
virtio: rng: disallow multiple device registrations, fixes crashes
The code currently only supports one virtio-rng device at a time.
Invoking guests with multiple devices causes the guest to blow up.
Check if we've already registered and initialised the driver. Also
cleanup in case of registration errors or hot-unplug so that a new
device can be used.
Reported-by: Peter Krempa <[email protected]>
Reported-by: <[email protected]>
Signed-off-by: Amit Shah <[email protected]>
Signed-off-by: Rusty Russell <[email protected]>
Cc: [email protected]
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
