diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-03 11:06:56 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-03 11:06:56 -0400 |
commit | 4046136afbd1038d776bad9c59e1e4cca78186fb (patch) | |
tree | 1888ca7bd978c0bba891ac9ee51224fd06d1162e /drivers/misc/genwqe | |
parent | b55a0ff8df92646696c858a8fea4dbf38509f202 (diff) | |
parent | a100d88df1e924e5c9678fabf054d1bae7ab74fb (diff) |
Merge tag 'char-misc-3.16-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc into next
Pull char/misc driver patches from Greg KH:
"Here is the big char / misc driver update for 3.16-rc1.
Lots of different driver updates for a variety of different drivers
and minor driver subsystems.
All have been in linux-next with no reported issues"
* tag 'char-misc-3.16-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (79 commits)
hv: use correct order when freeing monitor_pages
spmi: of: fixup generic SPMI devicetree binding example
applicom: dereferencing NULL on error path
misc: genwqe: fix uninitialized return value in genwqe_free_sync_sgl()
miscdevice.h: Simple syntax fix to make pointers consistent.
MAINTAINERS: Add miscdevice.h to file list for char/misc drivers.
mcb: Add support for shared PCI IRQs
drivers: Remove duplicate conditionally included subdirs
misc: atmel_pwm: only build for supported platforms
mei: me: move probe quirk to cfg structure
mei: add per device configuration
mei: me: read H_CSR after asserting reset
mei: me: drop harmful wait optimization
mei: me: fix hw ready reset flow
mei: fix memory leak of mei_clients array
uio: fix vma io range check in mmap
drivers: uio_dmem_genirq: Fix memory leak in uio_dmem_genirq_probe()
w1: do not unlock unheld list_mutex in __w1_remove_master_device()
w1: optional bundling of netlink kernel replies
connector: allow multiple messages to be sent in one packet
...
Diffstat (limited to 'drivers/misc/genwqe')
-rw-r--r-- | drivers/misc/genwqe/card_debugfs.c | 4 | ||||
-rw-r--r-- | drivers/misc/genwqe/card_utils.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/misc/genwqe/card_debugfs.c b/drivers/misc/genwqe/card_debugfs.c index 50d2096ea1c7..0a33ade64109 100644 --- a/drivers/misc/genwqe/card_debugfs.c +++ b/drivers/misc/genwqe/card_debugfs.c | |||
@@ -348,7 +348,7 @@ int genwqe_init_debugfs(struct genwqe_dev *cd) | |||
348 | char name[64]; | 348 | char name[64]; |
349 | unsigned int i; | 349 | unsigned int i; |
350 | 350 | ||
351 | sprintf(card_name, "%s%u_card", GENWQE_DEVNAME, cd->card_idx); | 351 | sprintf(card_name, "%s%d_card", GENWQE_DEVNAME, cd->card_idx); |
352 | 352 | ||
353 | root = debugfs_create_dir(card_name, cd->debugfs_genwqe); | 353 | root = debugfs_create_dir(card_name, cd->debugfs_genwqe); |
354 | if (!root) { | 354 | if (!root) { |
@@ -454,7 +454,7 @@ int genwqe_init_debugfs(struct genwqe_dev *cd) | |||
454 | } | 454 | } |
455 | 455 | ||
456 | for (i = 0; i < GENWQE_MAX_VFS; i++) { | 456 | for (i = 0; i < GENWQE_MAX_VFS; i++) { |
457 | sprintf(name, "vf%d_jobtimeout_msec", i); | 457 | sprintf(name, "vf%u_jobtimeout_msec", i); |
458 | 458 | ||
459 | file = debugfs_create_u32(name, 0666, root, | 459 | file = debugfs_create_u32(name, 0666, root, |
460 | &cd->vf_jobtimeout_msec[i]); | 460 | &cd->vf_jobtimeout_msec[i]); |
diff --git a/drivers/misc/genwqe/card_utils.c b/drivers/misc/genwqe/card_utils.c index c00adfaa6279..62cc6bb3f62e 100644 --- a/drivers/misc/genwqe/card_utils.c +++ b/drivers/misc/genwqe/card_utils.c | |||
@@ -454,7 +454,7 @@ int genwqe_setup_sgl(struct genwqe_dev *cd, struct genwqe_sgl *sgl, | |||
454 | */ | 454 | */ |
455 | int genwqe_free_sync_sgl(struct genwqe_dev *cd, struct genwqe_sgl *sgl) | 455 | int genwqe_free_sync_sgl(struct genwqe_dev *cd, struct genwqe_sgl *sgl) |
456 | { | 456 | { |
457 | int rc; | 457 | int rc = 0; |
458 | struct pci_dev *pci_dev = cd->pci_dev; | 458 | struct pci_dev *pci_dev = cd->pci_dev; |
459 | 459 | ||
460 | if (sgl->fpage) { | 460 | if (sgl->fpage) { |