]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - block/sed-opal.c
ARM: dts: at91: sama5d3_xplained: fix ADC vref
[karo-tx-linux.git] / block / sed-opal.c
index 020bf3e28e38db1869d29b72ed012aebda00530e..1e18dca360fc501033762d4c505c2e32c4674ee6 100644 (file)
@@ -396,8 +396,11 @@ static int next(struct opal_dev *dev)
                         * session. Therefore we shouldn't attempt to terminate
                         * a session, as one has not yet been created.
                         */
-                       if (state > 1)
-                               return end_opal_session_error(dev);
+                       if (state > 1) {
+                               end_opal_session_error(dev);
+                               return error;
+                       }
+
                }
                state++;
        } while (!error);