Commit graph

2 commits

Author SHA1 Message Date
Marcin Jurkowski
101fc3047c owfs: avoid npe in BUS_reset function
Monitor adapters (zeroconf, enet, usb and w1) don't have the reset
routine, causing null pointer dereference in BUS_reset function.

This patch has been submitted upstream:
https://sourceforge.net/p/owfs/bugs/67/

Signed-off-by: Marcin Jurkowski <marcin1j@gmail.com>
2015-09-01 01:29:23 +02:00
Marcin Jurkowski
2d537bc98f owfs: fix the last netlink message recognition
This fixes the endless loop waiting for w1 subsystem connector status
message.

According to the 8a0427d kernel commit, the last (status) netlink msg
should have ack=seq, whereas all the others messages should have ack=seq+1.

This patch has been submitted upstream: https://sourceforge.net/p/owfs/bugs/66/.

For independent problem report, see this thread:
https://www.raspberrypi.org/forums/viewtopic.php?f=44&t=98772

Signed-off-by: Marcin Jurkowski <marcin1j@gmail.com>
2015-09-01 01:29:20 +02:00