diff options
author | Phillip Potter <[email protected]> | 2021-05-03 13:57:14 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2021-05-13 18:32:23 +0200 |
commit | 5265db2ccc735e2783b790d6c19fb5cee8c025ed (patch) | |
tree | c54139ff568462fc4711ae9b0a1da2390b3bb2e4 /drivers/fpga/fpga-bridge.c | |
parent | 36a2c87f7ed9e305d05b9a5c044cc6c494771504 (diff) |
isdn: mISDN: correctly handle ph_info allocation failure in hfcsusb_ph_info
Modify return type of hfcusb_ph_info to int, so that we can pass error
value up the call stack when allocation of ph_info fails. Also change
three of four call sites to actually account for the memory failure.
The fourth, in ph_state_nt, is infeasible to change as it is in turn
called by ph_state which is used as a function pointer argument to
mISDN_initdchannel, which would necessitate changing its signature
and updating all the places where it is used (too many).
Fixes original flawed commit (38d22659803a) from the University of
Minnesota.
Cc: David S. Miller <[email protected]>
Signed-off-by: Phillip Potter <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions