Fix after aosp/2836447 am: d664a63cf4

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2848064

Change-Id: I93299925d3e4b23039833e6937ef9b267325e7c8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/audio/aidl/default/primary/StreamPrimary.cpp b/audio/aidl/default/primary/StreamPrimary.cpp
index 457fbb2..b22ef32 100644
--- a/audio/aidl/default/primary/StreamPrimary.cpp
+++ b/audio/aidl/default/primary/StreamPrimary.cpp
@@ -60,7 +60,7 @@
     } else {
         LOG(DEBUG) << __func__ << ": skipping transfer (" << frameCount << " frames)";
         *actualFrameCount = frameCount;
-        if (mIsInput) memset(buffer, 0, frameCount);
+        if (mIsInput) memset(buffer, 0, frameCount * mFrameSizeBytes);
         mSkipNextTransfer = false;
     }
     if (!mIsAsynchronous) {