From: Sasha Levin Date: Fri, 16 May 2014 02:12:43 +0000 (+0930) Subject: virtio-rng: fixes for device registration/unregistration X-Git-Tag: omap-for-v3.16/fixes-against-rc1~46^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a17597d3b418ca5a394d14724ccfc295cb3186c8;p=pandora-kernel.git virtio-rng: fixes for device registration/unregistration There are several fixes in this patch (mostly because it's hard splitting them up): - Revert the name field in struct hwrng back to 'const'. Also, don't do an extra kmalloc for the name - just wasteful. - Deal with allocation failures properly. - Use IDA to allocate device number instead of brute forcing one. Signed-off-by: Sasha Levin Signed-off-by: Rusty Russell --- Reading git-diff-tree failed