diff options
author | Trent Piepho <xyzzy@speakeasy.org> | 2006-07-25 09:31:42 -0300 |
---|---|---|
committer | Trent Piepho <xyzzy@speakeasy.org> | 2006-07-25 09:31:42 -0300 |
commit | eae539a732ce1383b14bea7a37e7204cba2805fc (patch) | |
tree | 81f68b1edc062bccb01c86c0ba1027c9b807343d /v4l/compat.h | |
parent | 6b10723421c5d71d041d1dc54cc19d782a290638 (diff) | |
download | mediapointer-dvb-s2-eae539a732ce1383b14bea7a37e7204cba2805fc.tar.gz mediapointer-dvb-s2-eae539a732ce1383b14bea7a37e7204cba2805fc.tar.bz2 |
videodev: Handle class_device related errors
From: Trent Piepho <xyzzy@speakeasy.org>
Add proper error checking and roll-back for failure of
class_device_create_file() in videodev.c. Print error messages and
unroll partially created sysfs entries.
Also, failure of class_device_register() in video_register_device() is
handled correctly. It was failing to de-allocate the minor number. This
must be done in video_register_device(), since the caller has no way of
knowing if failure occurred before or after the class device was
registered.
Also added an error message if video_register_device() is called with
an unknown type, which should never happen.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Diffstat (limited to 'v4l/compat.h')
0 files changed, 0 insertions, 0 deletions