The two goto labels for unwinding on error were inverted. Swap them
around.
Fixes a smatch error:
drivers/staging/mrst/drv/psb_fb.c:421 psbfb_create(82) error: we previously assumed 'fb' could be null (see line 368) (smatch)
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
mutex_unlock(&dev->struct_mutex);
return 0;
-out_err0:
- fb->funcs->destroy(fb);
out_err1:
+ fb->funcs->destroy(fb);
+out_err0:
mutex_unlock(&dev->struct_mutex);
return ret;
}