lib: Check pipe source validity in igt_pipe_crc_new()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 21 Oct 2013 15:45:03 +0000 (18:45 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 21 Oct 2013 17:00:32 +0000 (20:00 +0300)
commit0786d5cc8f258c7f403a22d8234ebb81837baa70
treef212022343f5655a558aa9838bd7656a9ccb13b5
parent987bcd9a5b51db312588163d7f9a21654eb799e4
lib: Check pipe source validity in igt_pipe_crc_new()

Have igt_pipe_crc_new() check whether the selected source is actually
supported.

v2: Make debugfs_pipe_crc.c not crash

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
lib/igt_debugfs.c
tests/debugfs_pipe_crc.c