Thread (6 messages) 6 messages, 4 authors, 2012-03-17

Re: [PATCH] isdn: Return -EINTR in gigaset_start() if locking attempts fails.

From: santosh prasad nayak <hidden>
Date: 2012-03-17 15:56:14
Also in: kernel-janitors, linux-media

Yes. You are right.

Caller is interpreting 0 in opposite way of normal sequence.
Thats why I misunderstood it.

In general, 0 means success and on error we return -ve.
Here its opposite.




regards
Santosh



On Sat, Mar 17, 2012 at 11:48 AM, David Miller [off-list ref] wrote:
From: santosh nayak <redacted>
Date: Fri, 16 Mar 2012 18:40:13 +0530
quoted
We have 3 callers: gigaset_probe(), gigaset_tty_open() and
gigaset_probe(). Each caller tries to free allocated memory
if lock fails. This is possible if we returns -EINTR.
Look again at the callers.

They interpret "0" as an error, so your patch would break the driver.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help