From e1c035312c8c123c4eb8c45bb32eb6acdaf77ab1 Mon Sep 17 00:00:00 2001 From: Vasily Khoruzhick Date: Sat, 10 Nov 2012 18:21:19 +0300 Subject: [PATCH 1/3] aes2550: fix bug introduced by last commit ssm->priv is not aesdev, but fp_img_dev --- libfprint/drivers/aes2550.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libfprint/drivers/aes2550.c b/libfprint/drivers/aes2550.c index f0d60c4..6d68696 100644 --- a/libfprint/drivers/aes2550.c +++ b/libfprint/drivers/aes2550.c @@ -370,7 +370,8 @@ static void capture_set_idle_reqs_cb(struct libusb_transfer *transfer) static void capture_read_data_cb(struct libusb_transfer *transfer) { struct fpi_ssm *ssm = transfer->user_data; - struct aes2550_dev *aesdev = ssm->priv; + struct fp_img_dev *dev = ssm->priv; + struct aes2550_dev *aesdev = dev->priv; unsigned char *data = transfer->buffer; int r; -- 1.8.0