aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorAkinobu Mita <[email protected]>2007-05-08 00:29:18 -0700
committerLinus Torvalds <[email protected]>2007-05-08 11:15:09 -0700
commitb2bbe383ef7e792e92a5f53be955e71bd253ab32 (patch)
tree8ca8e4ee8155c6adb6023ecf78b9e9421a7e341d /include/linux
parent19d0e8ce856a7628a630710aed82931ce1c7eb97 (diff)
dtlk: fix error checks in module_init()
This patch fixes two things in module_init. - fix register_chrdev() error check Currently dtlk doesn't check register_chrdev() failure correctly. register_chrdev() returns a errno on failure. - check probe failure dtlk ignores probe failure and allows the module loading without such device. I got "Trying to free nonexistent resource" message by release_region() when unloading module without device. [[email protected]: fix error code return] Signed-off-by: Akinobu Mita <[email protected]> Cc: Chris Pallotta <[email protected]> Cc: Jim Van Zandt <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions