Attention is currently required from: pespin.
neels has posted comments on this change. ( 
https://gerrit.osmocom.org/c/osmo-hnbgw/+/29549 )

Change subject: hnb_read_cb(): -EBADF must be returned if conn is freed to 
avoid use-after-free
......................................................................


Patch Set 1:

(1 comment)

Commit Message:

https://gerrit.osmocom.org/c/osmo-hnbgw/+/29549/comment/526a25ae_b3c2f706
PS1, Line 11: loop iteration.
sounds like adapting the api implementation to fix a problem that should be 
fixed in the calling code. Why is it not enough to return more detailed 
negative rc, especially in the case

 } else if (rc < 0) {
    ...

Now the caller always gets -EBADF, hiding the actual error cause that was 
returned before.

"Bad file descriptor" seems inaccurate



--
To view, visit https://gerrit.osmocom.org/c/osmo-hnbgw/+/29549
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-hnbgw
Gerrit-Branch: master
Gerrit-Change-Id: I628c59a88d94d299f432f405b37fbe602381d47e
Gerrit-Change-Number: 29549
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-CC: neels <[email protected]>
Gerrit-Attention: pespin <[email protected]>
Gerrit-Comment-Date: Fri, 30 Sep 2022 14:27:05 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment

Reply via email to