au-ts / sddf

A collection of interfaces, libraries and tools for writing device drivers for seL4 that allow accessing devices securely and with low overhead.
Other
23 stars 18 forks source link

i2c: added index check so if driver screws up client wont break #243

Closed TristanCM347 closed 2 months ago

TristanCM347 commented 2 months ago

if driver returns a response of 0s (because something goes wrong) the client now will not crash

Ivan-Velickovic commented 2 months ago

Next time can you please mention in the commit message what driver/client you're referring to. There are many drivers and clients in sDDF now so looking just at the commit message doesn't say what's going on.

E.g in this case it should be something like examples/i2c: add error check to client or something like that. That tells me if I look at the commit history that the commit only touches the I2C example.