fix: lp.c wrong return code

WHarms@bfs.de
Sun, 24 Feb 2002 18:34:59 +0100


--1014572039-MIME-Part-Dividor
Content-type: text/plain; charset=us-ascii
Content-Disposition: inline

hi,
how takes care about the lp driver ? i saw some changes in the 2.4 but found no maintainer.
to the maintainer:
LPGETSTATS is strange. first you set LP_STAT then you delete it. maybe a EACCES (Permission denied) would do it ?

problem:
calling the ioctl( LPSETIRQ ) the driver returns EINVAL (Invalid argument)instead of ENOSYS.

Fix : return ENOSYS (Function not implemented)

NOTE:
if EINVAL is correct, you can delete the entiere entry, EINVAL in default.

--1014572039-MIME-Part-Dividor
Content-type: application/octet-stream;
name="lp.diff"
Content-Disposition: attachment; filename="lp.diff"
Content-Transfer-Encoding: base64

LS0tIGxwLmMub2xkCVN1biBGZWIgMjQgMTg6MTk6NTkgMjAwMgorKysgbHAuYwlTdW4gRmViIDI0
IDE4OjIwOjU3IDIwMDIKQEAgLTgwNiw3ICs4MDYsNyBAQAogCQkJTFBfV0FJVChtaW5vcikgPSBh
cmc7CiAJCQlicmVhazsKIAkJY2FzZSBMUFNFVElSUTogCi0JCQlyZXR1cm4gLUVJTlZBTDsKKwkJ
CXJldHVybiAtRU5PU1lTOwogCQkJYnJlYWs7CiAJCWNhc2UgTFBHRVRJUlE6CiAJCQlpZiAoY29w
eV90b191c2VyKChpbnQgKikgYXJnLCAmTFBfSVJRKG1pbm9yKSwK

--1014572039-MIME-Part-Dividor--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/