From: Dave Airlie Date: Mon, 31 Mar 2008 01:34:48 +0000 (+1000) Subject: nouveau: fix return from function.. X-Git-Tag: libdrm-2.3.1~69 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=562f95ea96f08e1d73a872dc87237614292c873a;p=platform%2Fupstream%2Flibdrm.git nouveau: fix return from function.. dude kernel moduless use kernel errors :) this fixes an oops on init when this codepath hits. --- diff --git a/shared-core/nouveau_state.c b/shared-core/nouveau_state.c index 5ed16d7..555955d 100644 --- a/shared-core/nouveau_state.c +++ b/shared-core/nouveau_state.c @@ -46,7 +46,7 @@ static int nouveau_init_card_mappings(struct drm_device *dev) DRM_ERROR("Unable to initialize the mmio mapping (%d). " "Please report your setup to " DRIVER_EMAIL "\n", ret); - return 1; + return -EINVAL; } DRM_DEBUG("regs mapped ok at 0x%lx\n", dev_priv->mmio->offset);