hal/*/protocols/ops/*: fix I2C and SPI init () failure handling
Some functions inside the respective open () calls can fail, specifically _init () ones. So, we must destroy everything allocated before that and exit.
Showing
Please
register
or
sign in
to comment