backing-dev: Handle class_create() failure
authorAnton Blanchard <anton@samba.org>
Fri, 2 Apr 2010 07:46:55 +0000 (09:46 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Fri, 2 Apr 2010 07:46:55 +0000 (09:46 +0200)
I hit this when we had a bug in IDR for a few days. Basically sysfs would
fail to create new inodes since it uses an IDR and therefore class_create would
fail.

While we are unlikely to see this fail we may as well handle it instead of
oopsing.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>

No differences found