|
@@ -2583,8 +2583,10 @@ bed:
|
|
NULL, NULL, NULL);
|
|
NULL, NULL, NULL);
|
|
|
|
|
|
/* Check if the we got some results */
|
|
/* Check if the we got some results */
|
|
- if (!self->cachedaddr)
|
|
|
|
- return -EAGAIN; /* Didn't find any devices */
|
|
|
|
|
|
+ if (!self->cachedaddr) {
|
|
|
|
+ err = -EAGAIN; /* Didn't find any devices */
|
|
|
|
+ goto out;
|
|
|
|
+ }
|
|
daddr = self->cachedaddr;
|
|
daddr = self->cachedaddr;
|
|
/* Cleanup */
|
|
/* Cleanup */
|
|
self->cachedaddr = 0;
|
|
self->cachedaddr = 0;
|