Graphic: Critical Klocwork issues for GRAPHICS in round 103
authorluliuhui <liuhui.lu@intel.com>
Tue, 24 Apr 2012 00:40:05 +0000 (08:40 +0800)
committerbuildbot <buildbot@intel.com>
Wed, 25 Apr 2012 01:00:55 +0000 (18:00 -0700)
BZ: 33105

Revise NULL pointer dereferenced issues in kernel in round 103 scan.

Change-Id: I93488fdb96bc0fa8693e7fd1d9b36027ae4d98a5
Signed-off-by: luliuhui <liuhui.lu@intel.com>
Reviewed-on: http://android.intel.com:8080/44735
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Tested-by: Xu, Randy <randy.xu@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
drivers/staging/mrst/drv/psb_intel_display2.c

index e92bea7..92ac824 100644 (file)
@@ -151,6 +151,7 @@ int mdfld_intel_crtc_set_gamma(struct drm_device *dev,
        else if (pipe == 1) {
                PSB_DEBUG_ENTRY("/KAI1 palette no implement for HDMI\n"
                                "do it later\n");
+               return -EINVAL;
        } else
                return -EINVAL;
 
@@ -341,6 +342,7 @@ int mdfld_intel_crtc_set_color_conversion(struct drm_device *dev,
        else if (pipe == 1) {
                PSB_DEBUG_ENTRY("/KAI1 color conversion no implement for HDMI\n"
                                "do it later\n");
+               return -EINVAL;
        } else
                return -EINVAL;