Merge remote-tracking branch 'coresight/next'
authorStephen Rothwell <sfr@canb.auug.org.au>
Tue, 13 Sep 2016 03:26:28 +0000 (13:26 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 13 Sep 2016 03:26:28 +0000 (13:26 +1000)
drivers/hwtracing/coresight/coresight-stm.c

index 49e0f1b925a5a656e228e9cb58c74c74997eb907..d397849c2c6ad0f7d79c878b48dcd67fc5af742c 100644 (file)
@@ -419,10 +419,10 @@ static ssize_t stm_generic_packet(struct stm_data *stm_data,
                                                   struct stm_drvdata, stm);
 
        if (!(drvdata && local_read(&drvdata->mode)))
-               return 0;
+               return -EACCES;
 
        if (channel >= drvdata->numsp)
-               return 0;
+               return -EINVAL;
 
        ch_addr = (unsigned long)stm_channel_addr(drvdata, channel);
 
This page took 0.025115 seconds and 5 git commands to generate.