|
@@ -1762,6 +1762,8 @@ static int check_hw_params_convention(struct snd_usb_substream *subs)
|
|
|
|
|
|
channels = kcalloc(MAX_MASK, sizeof(u32), GFP_KERNEL);
|
|
|
rates = kcalloc(MAX_MASK, sizeof(u32), GFP_KERNEL);
|
|
|
+ if (!channels || !rates)
|
|
|
+ goto __out;
|
|
|
|
|
|
list_for_each(p, &subs->fmt_list) {
|
|
|
struct audioformat *f;
|