|
@@ -96,9 +96,9 @@ show_test_oa_id(struct device *kdev, struct device_attribute *attr, char *buf)
|
|
|
void
|
|
|
i915_perf_load_test_config_cnl(struct drm_i915_private *dev_priv)
|
|
|
{
|
|
|
- strncpy(dev_priv->perf.oa.test_config.uuid,
|
|
|
+ strlcpy(dev_priv->perf.oa.test_config.uuid,
|
|
|
"db41edd4-d8e7-4730-ad11-b9a2d6833503",
|
|
|
- UUID_STRING_LEN);
|
|
|
+ sizeof(dev_priv->perf.oa.test_config.uuid));
|
|
|
dev_priv->perf.oa.test_config.id = 1;
|
|
|
|
|
|
dev_priv->perf.oa.test_config.mux_regs = mux_config_test_oa;
|