Commit 72bbbb61 authored by Jan Kiszka's avatar Jan Kiszka

drivers/analogy: Fix improper memset in Intel 8255

This overwrote the pointer itself - and more. Long pending bugs.
Signed-off-by: Jan Kiszka's avatarJan Kiszka <jan.kiszka@siemens.com>
parent bae753be
......@@ -201,7 +201,7 @@ void a4l_subdev_8255_init(struct a4l_subdevice *subd)
{
subd_8255_t *subd_8255 = (subd_8255_t *)subd->priv;
/* Initializes the subdevice structure */
memset(&subd, 0, sizeof(struct a4l_subdevice));
memset(subd, 0, sizeof(struct a4l_subdevice));
/* Subdevice filling part */
......@@ -263,7 +263,7 @@ static int dev_8255_attach(struct a4l_device *dev, a4l_lnkdesc_t *arg)
goto out_attach;
}
memset(&subd, 0, sizeof(struct a4l_subdevice));
memset(subd, 0, sizeof(struct a4l_subdevice));
memset(subd->priv, 0, sizeof(subd_8255_t));
subd_8255 = (subd_8255_t *)subd->priv;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment