We put 9 characters into the 8 character name[] array.  Let's make the
array bigger and change the sprintf() to snprintf().
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
        struct device *dev;
        int id;
        int rx_irq;
-       char name[8];
+       char name[10];
        spinlock_t lock;
        int pending;
        int max_outstanding;
                chan->dev = pdma->dev;
                chan->pdma = pdma;
                chan->id = i;
-               sprintf(chan->name, "dmachan%d", chan->id);
+               snprintf(chan->name, sizeof(chan->name), "dmachan%d", chan->id);
        }
 }